<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Darn them XML namespaces!</title>
	<atom:link href="http://www.psyked.co.uk/actionscript/darn-them-xml-namespaces.htm/feed" rel="self" type="application/rss+xml" />
	<link>http://www.psyked.co.uk/actionscript/darn-them-xml-namespaces.htm</link>
	<description>it's easy once you know how.</description>
	<lastBuildDate>Thu, 11 Mar 2010 12:29:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: James</title>
		<link>http://www.psyked.co.uk/actionscript/darn-them-xml-namespaces.htm/comment-page-1#comment-2458</link>
		<dc:creator>James</dc:creator>
		<pubDate>Mon, 01 Dec 2008 17:02:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.psyked.co.uk/?p=399#comment-2458</guid>
		<description>Thanks Nick - your post makes a lot of sense, my favourate solution so far!</description>
		<content:encoded><![CDATA[<p>Thanks Nick &#8211; your post makes a lot of sense, my favourate solution so far!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Schneble</title>
		<link>http://www.psyked.co.uk/actionscript/darn-them-xml-namespaces.htm/comment-page-1#comment-2457</link>
		<dc:creator>Nick Schneble</dc:creator>
		<pubDate>Mon, 01 Dec 2008 16:55:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.psyked.co.uk/?p=399#comment-2457</guid>
		<description>James,

You can easily handle multiple namespaces in XML using E4X without changing the namespace used in the class (per Jordi&#039;s comment).

I wrote up a post on it a while back:
http://userflex.wordpress.com/2008/04/03/xml-ns-e4x/

This technique can also be applied when you don&#039;t know what namespaces are specified beforehand, since you can iterate over the XML.namespaceDeclarations() array to determine what ones are used in the XML.

Hope that helps!</description>
		<content:encoded><![CDATA[<p>James,</p>
<p>You can easily handle multiple namespaces in XML using E4X without changing the namespace used in the class (per Jordi&#8217;s comment).</p>
<p>I wrote up a post on it a while back:<br />
<a href="http://userflex.wordpress.com/2008/04/03/xml-ns-e4x/" rel="nofollow">http://userflex.wordpress.com/2008/04/03/xml-ns-e4x/</a></p>
<p>This technique can also be applied when you don&#8217;t know what namespaces are specified beforehand, since you can iterate over the XML.namespaceDeclarations() array to determine what ones are used in the XML.</p>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.psyked.co.uk/actionscript/darn-them-xml-namespaces.htm/comment-page-1#comment-2455</link>
		<dc:creator>James</dc:creator>
		<pubDate>Mon, 01 Dec 2008 14:01:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.psyked.co.uk/?p=399#comment-2455</guid>
		<description>Aha, Akismet was eating the comments...

Namespaces is something I&#039;ll have to look into a bit more.  I&#039;ll give both of those suggestions a shot though, and see what I can make work...

I was trying to extract the paths of the icons from the applicationDescriptor files in an AIR application (for my &lt;a href=&quot;http://www.psyked.co.uk/actionscript/application-information-class-for-air.htm&quot;  rel=&quot;nofollow&quot;&gt;ApplicationInfo&lt;/a&gt; class) but was getting stumped.</description>
		<content:encoded><![CDATA[<p>Aha, Akismet was eating the comments&#8230;</p>
<p>Namespaces is something I&#8217;ll have to look into a bit more.  I&#8217;ll give both of those suggestions a shot though, and see what I can make work&#8230;</p>
<p>I was trying to extract the paths of the icons from the applicationDescriptor files in an AIR application (for my <a href="http://www.psyked.co.uk/actionscript/application-information-class-for-air.htm"  rel="nofollow">ApplicationInfo</a> class) but was getting stumped.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Butler</title>
		<link>http://www.psyked.co.uk/actionscript/darn-them-xml-namespaces.htm/comment-page-1#comment-2454</link>
		<dc:creator>Richard Butler</dc:creator>
		<pubDate>Mon, 01 Dec 2008 13:13:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.psyked.co.uk/?p=399#comment-2454</guid>
		<description>Doesn&#039;t look like your comment system likes XML, but hopefully you can see what I was getting at!</description>
		<content:encoded><![CDATA[<p>Doesn&#8217;t look like your comment system likes XML, but hopefully you can see what I was getting at!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Butler</title>
		<link>http://www.psyked.co.uk/actionscript/darn-them-xml-namespaces.htm/comment-page-1#comment-2453</link>
		<dc:creator>Richard Butler</dc:creator>
		<pubDate>Mon, 01 Dec 2008 13:10:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.psyked.co.uk/?p=399#comment-2453</guid>
		<description>A handy one if your XML only has one namespace is the following:

default xml namespace = &quot;http://my.xml.com/ns/1.0&quot;;

var x : XML = 
  
    Test
  
;

trace( x.node.item.text() ); // traces &quot;Test&quot;</description>
		<content:encoded><![CDATA[<p>A handy one if your XML only has one namespace is the following:</p>
<p>default xml namespace = &#8220;http://my.xml.com/ns/1.0&#8243;;</p>
<p>var x : XML = </p>
<p>    Test</p>
<p>;</p>
<p>trace( x.node.item.text() ); // traces &#8220;Test&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordi Boggiano</title>
		<link>http://www.psyked.co.uk/actionscript/darn-them-xml-namespaces.htm/comment-page-1#comment-2451</link>
		<dc:creator>Jordi Boggiano</dc:creator>
		<pubDate>Mon, 01 Dec 2008 10:58:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.psyked.co.uk/?p=399#comment-2451</guid>
		<description>Just had the same problem and a colleague gave me the solution, when you know what namespace to expect at least.

class Foo {
	namespace blah = &quot;http://url_of_your_xmlns_declaration&quot;;
	use namespace blah;
}

If you set up your class like this, with the url used for the namespace in the xml file, and that use statement using it, you can then access everything properly.

That being said, you should be careful because once you&#039;ve namespaces, code like someXml.name() returns &quot;http://namespaceUrl::realName&quot;, someXml.localName() returns only &quot;realName&quot; though.</description>
		<content:encoded><![CDATA[<p>Just had the same problem and a colleague gave me the solution, when you know what namespace to expect at least.</p>
<p>class Foo {<br />
	namespace blah = &#8220;http://url_of_your_xmlns_declaration&#8221;;<br />
	use namespace blah;<br />
}</p>
<p>If you set up your class like this, with the url used for the namespace in the xml file, and that use statement using it, you can then access everything properly.</p>
<p>That being said, you should be careful because once you&#8217;ve namespaces, code like someXml.name() returns &#8220;http://namespaceUrl::realName&#8221;, someXml.localName() returns only &#8220;realName&#8221; though.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
