<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>AaronHardy.com &#187; e4x namespace attribute hasOwnProperty XML</title>
	<atom:link href="http://aaronhardy.com/tag/e4x-namespace-attribute-hasownproperty-xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://aaronhardy.com</link>
	<description>For all your Aaron Hardy needs.</description>
	<lastBuildDate>Fri, 20 Apr 2012 14:53:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Finding nodes with a namespaced attribute using e4x</title>
		<link>http://aaronhardy.com/flex/finding-nodes-with-a-namespaced-attribute-using-e4x/</link>
		<comments>http://aaronhardy.com/flex/finding-nodes-with-a-namespaced-attribute-using-e4x/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 04:05:24 +0000</pubDate>
		<dc:creator>Aaron Hardy</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[General Programming]]></category>
		<category><![CDATA[e4x namespace attribute hasOwnProperty XML]]></category>

		<guid isPermaLink="false">http://aaronhardy.com/?p=395</guid>
		<description><![CDATA[When digging through XML, e4x is definitely your friend but it can be tricky sometimes. I recently came across a situation where I needed to find all nodes with a certain namespaced attribute. I didn&#8217;t care what the attribute&#8217;s value was; I just needed to know which nodes had the attribute. Take the following XML: [...]]]></description>
			<content:encoded><![CDATA[<p>When digging through XML, e4x is definitely your friend but it can be tricky sometimes.  I recently came across a situation where I needed to find all nodes with a certain namespaced attribute.  I didn&#8217;t care what the attribute&#8217;s value was; I just needed to know which nodes had the attribute.<span id="more-395"></span></p>
<p>Take the following XML:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;catalog</span> <span style="color: #000066;">xmlns:ah</span>=<span style="color: #ff0000;">&quot;http://aaronhardy.com/music&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Empire Burlesque<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artist</span> <span style="color: #000066;">ah:verified</span>=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Bob Dylan<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;country<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>USA<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/country<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;company<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Columbia<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/company<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;price<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>10.90<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/price<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;year<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1985<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/year<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/cd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Hide your heart<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Bonnie Tyler<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;country<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>UK<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/country<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;company<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>CBS Records<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/company<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;price<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>9.90<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/price<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;year<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1988<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/year<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/cd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title</span> <span style="color: #000066;">ah:verified</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Greatest Hits<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Dolly Parton<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;country<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>USA<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/country<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;company<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>RCA<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/company<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;price<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>9.90<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/price<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;year<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1982<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/year<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/cd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cd</span> <span style="color: #000066;">ah:verified</span>=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title</span> <span style="color: #000066;">ah:verified</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Still got the blues<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Gary Moore<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;country<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>UK<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/country<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;company<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Virgin records<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/company<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;price<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>10.20<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/price<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;year<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1990<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/year<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/cd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Eros<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Eros Ramazzotti<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;country</span> <span style="color: #000066;">ah:verified</span>=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>EU<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/country<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;company<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>BMG<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/company<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;price<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>9.90<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/price<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;year<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1997<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/year<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/cd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/catalog<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>In this case I&#8217;m trying to find all nodes that have a &#8220;verified&#8221; attribute.  Again, I don&#8217;t care if the attribute&#8217;s value is true or false.  If the attribute weren&#8217;t in the &#8220;ah&#8221; namespace I would use this line of code:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> nodes:XMLList = myXML..<span style="color: #66cc66;">*</span>.<span style="color: #66cc66;">&#40;</span>hasOwnProperty<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'@verified'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>However, since the attribute is in the &#8220;ah&#8221; namespace, the query takes this form:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>mx:Application xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;absolute&quot;</span> creationComplete=<span style="color: #ff0000;">&quot;cc()&quot;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>mx:Script<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
			protected <span style="color: #000000; font-weight: bold;">function</span> cc<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
			<span style="color: #66cc66;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">var</span> myXML:<span style="color: #0066CC;">XML</span> = 
					<span style="color: #66cc66;">&lt;</span>catalog xmlns:ah=<span style="color: #ff0000;">&quot;http://aaronhardy.com/music&quot;</span><span style="color: #66cc66;">&gt;</span>
						<span style="color: #66cc66;">&lt;</span>cd<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>title<span style="color: #66cc66;">&gt;</span>Empire Burlesque<span style="color: #66cc66;">&lt;/</span>title<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>artist ah:verified=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #66cc66;">&gt;</span>Bob Dylan<span style="color: #66cc66;">&lt;/</span>artist<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>country<span style="color: #66cc66;">&gt;</span>USA<span style="color: #66cc66;">&lt;/</span>country<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>company<span style="color: #66cc66;">&gt;</span>Columbia<span style="color: #66cc66;">&lt;/</span>company<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>price<span style="color: #66cc66;">&gt;</span><span style="color: #cc66cc;">10.90</span><span style="color: #66cc66;">&lt;/</span>price<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>year<span style="color: #66cc66;">&gt;</span><span style="color: #cc66cc;">1985</span><span style="color: #66cc66;">&lt;/</span>year<span style="color: #66cc66;">&gt;</span>
						<span style="color: #66cc66;">&lt;/</span>cd<span style="color: #66cc66;">&gt;</span>
						<span style="color: #66cc66;">&lt;</span>cd<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>title<span style="color: #66cc66;">&gt;</span>Hide your heart<span style="color: #66cc66;">&lt;/</span>title<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>artist<span style="color: #66cc66;">&gt;</span>Bonnie Tyler<span style="color: #66cc66;">&lt;/</span>artist<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>country<span style="color: #66cc66;">&gt;</span>UK<span style="color: #66cc66;">&lt;/</span>country<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>company<span style="color: #66cc66;">&gt;</span>CBS Records<span style="color: #66cc66;">&lt;/</span>company<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>price<span style="color: #66cc66;">&gt;</span><span style="color: #cc66cc;">9.90</span><span style="color: #66cc66;">&lt;/</span>price<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>year<span style="color: #66cc66;">&gt;</span><span style="color: #cc66cc;">1988</span><span style="color: #66cc66;">&lt;/</span>year<span style="color: #66cc66;">&gt;</span>
						<span style="color: #66cc66;">&lt;/</span>cd<span style="color: #66cc66;">&gt;</span>
						<span style="color: #66cc66;">&lt;</span>cd<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>title ah:verified=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #66cc66;">&gt;</span>Greatest Hits<span style="color: #66cc66;">&lt;/</span>title<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>artist<span style="color: #66cc66;">&gt;</span>Dolly Parton<span style="color: #66cc66;">&lt;/</span>artist<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>country<span style="color: #66cc66;">&gt;</span>USA<span style="color: #66cc66;">&lt;/</span>country<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>company<span style="color: #66cc66;">&gt;</span>RCA<span style="color: #66cc66;">&lt;/</span>company<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>price<span style="color: #66cc66;">&gt;</span><span style="color: #cc66cc;">9.90</span><span style="color: #66cc66;">&lt;/</span>price<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>year<span style="color: #66cc66;">&gt;</span><span style="color: #cc66cc;">1982</span><span style="color: #66cc66;">&lt;/</span>year<span style="color: #66cc66;">&gt;</span>
						<span style="color: #66cc66;">&lt;/</span>cd<span style="color: #66cc66;">&gt;</span>
						<span style="color: #66cc66;">&lt;</span>cd ah:verified=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>title ah:verified=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #66cc66;">&gt;</span>Still got the blues<span style="color: #66cc66;">&lt;/</span>title<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>artist<span style="color: #66cc66;">&gt;</span>Gary Moore<span style="color: #66cc66;">&lt;/</span>artist<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>country<span style="color: #66cc66;">&gt;</span>UK<span style="color: #66cc66;">&lt;/</span>country<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>company<span style="color: #66cc66;">&gt;</span>Virgin records<span style="color: #66cc66;">&lt;/</span>company<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>price<span style="color: #66cc66;">&gt;</span><span style="color: #cc66cc;">10.20</span><span style="color: #66cc66;">&lt;/</span>price<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>year<span style="color: #66cc66;">&gt;</span><span style="color: #cc66cc;">1990</span><span style="color: #66cc66;">&lt;/</span>year<span style="color: #66cc66;">&gt;</span>
						<span style="color: #66cc66;">&lt;/</span>cd<span style="color: #66cc66;">&gt;</span>
						<span style="color: #66cc66;">&lt;</span>cd<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>title<span style="color: #66cc66;">&gt;</span>Eros<span style="color: #66cc66;">&lt;/</span>title<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>artist<span style="color: #66cc66;">&gt;</span>Eros Ramazzotti<span style="color: #66cc66;">&lt;/</span>artist<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>country ah:verified=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #66cc66;">&gt;</span>EU<span style="color: #66cc66;">&lt;/</span>country<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>company<span style="color: #66cc66;">&gt;</span>BMG<span style="color: #66cc66;">&lt;/</span>company<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>price<span style="color: #66cc66;">&gt;</span><span style="color: #cc66cc;">9.90</span><span style="color: #66cc66;">&lt;/</span>price<span style="color: #66cc66;">&gt;</span>
							<span style="color: #66cc66;">&lt;</span>year<span style="color: #66cc66;">&gt;</span><span style="color: #cc66cc;">1997</span><span style="color: #66cc66;">&lt;/</span>year<span style="color: #66cc66;">&gt;</span>
						<span style="color: #66cc66;">&lt;/</span>cd<span style="color: #66cc66;">&gt;</span>
					<span style="color: #66cc66;">&lt;/</span>catalog<span style="color: #66cc66;">&gt;</span>;
&nbsp;
				<span style="color: #000000; font-weight: bold;">var</span> ns_ah:Namespace = <span style="color: #000000; font-weight: bold;">new</span> Namespace<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'http://aaronhardy.com/music'</span><span style="color: #66cc66;">&#41;</span>;
				<span style="color: #000000; font-weight: bold;">var</span> verified:QName = <span style="color: #000000; font-weight: bold;">new</span> QName<span style="color: #66cc66;">&#40;</span>ns_ah, <span style="color: #ff0000;">'@verified'</span><span style="color: #66cc66;">&#41;</span>;
				<span style="color: #000000; font-weight: bold;">var</span> nodes:XMLList = myXML..<span style="color: #66cc66;">*</span>.<span style="color: #66cc66;">&#40;</span>hasOwnProperty<span style="color: #66cc66;">&#40;</span>verified<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
				<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>nodes.<span style="color: #006600;">toXMLString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
		<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>mx:Script<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;/</span>mx:Application<span style="color: #66cc66;">&gt;</span></pre></div></div>

<p>Hope that helps someone!</p>
]]></content:encoded>
			<wfw:commentRss>http://aaronhardy.com/flex/finding-nodes-with-a-namespaced-attribute-using-e4x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

