<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Better documentation for AS3&#8217;s XML class (e4x)</title>
	<atom:link href="http://jwopitz.wordpress.com/2008/02/27/better-documentation-for-as3s-xml-class-e4x/feed/" rel="self" type="application/rss+xml" />
	<link>http://jwopitz.wordpress.com/2008/02/27/better-documentation-for-as3s-xml-class-e4x/</link>
	<description>actionscript, flex, flash and other fun stuff</description>
	<lastBuildDate>Sat, 14 Nov 2009 16:04:03 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: olicorn</title>
		<link>http://jwopitz.wordpress.com/2008/02/27/better-documentation-for-as3s-xml-class-e4x/#comment-5059</link>
		<dc:creator>olicorn</dc:creator>
		<pubDate>Sat, 19 Sep 2009 21:58:56 +0000</pubDate>
		<guid isPermaLink="false">http://jwopitz.wordpress.com/?p=135#comment-5059</guid>
		<description>thank you for the tips. Very useful</description>
		<content:encoded><![CDATA[<p>thank you for the tips. Very useful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://jwopitz.wordpress.com/2008/02/27/better-documentation-for-as3s-xml-class-e4x/#comment-4650</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Fri, 02 Jan 2009 21:03:36 +0000</pubDate>
		<guid isPermaLink="false">http://jwopitz.wordpress.com/?p=135#comment-4650</guid>
		<description>Aaargh! My apologies. I don&#039;t know how to insert curly braces into this post.

Here&#039;s a link to &lt;a href=&quot;&quot; rel=&quot;nofollow&quot;&gt;the site where I think I learned this&lt;/a&gt; if you want to find what I&#039;m talking about. Search the page for &quot;Dynamic XML definitions&quot;.

And here goes one last try to post the code here:
var dynamicValueForNodeName :String = &quot;node&quot;;
var xml:XML = \;
trace(xml.toXMLString());// traces &quot;\&quot;</description>
		<content:encoded><![CDATA[<p>Aaargh! My apologies. I don&#8217;t know how to insert curly braces into this post.</p>
<p>Here&#8217;s a link to <a href="" rel="nofollow">the site where I think I learned this</a> if you want to find what I&#8217;m talking about. Search the page for &#8220;Dynamic XML definitions&#8221;.</p>
<p>And here goes one last try to post the code here:<br />
var dynamicValueForNodeName :String = &#8220;node&#8221;;<br />
var xml:XML = \;<br />
trace(xml.toXMLString());// traces &#8220;\&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://jwopitz.wordpress.com/2008/02/27/better-documentation-for-as3s-xml-class-e4x/#comment-4649</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Fri, 02 Jan 2009 20:59:45 +0000</pubDate>
		<guid isPermaLink="false">http://jwopitz.wordpress.com/?p=135#comment-4649</guid>
		<description>Oops, wordpress ate my code. Sorry. Let me see if this works:
&lt;code&gt;var dynamicValueForNodeName :String = &quot;node&quot;;
var xml:XML = ;
trace(xml.toXMLString());// traces &quot;&quot;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Oops, wordpress ate my code. Sorry. Let me see if this works:<br />
<code>var dynamicValueForNodeName :String = "node";<br />
var xml:XML = ;<br />
trace(xml.toXMLString());// traces ""</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://jwopitz.wordpress.com/2008/02/27/better-documentation-for-as3s-xml-class-e4x/#comment-4648</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Fri, 02 Jan 2009 20:57:05 +0000</pubDate>
		<guid isPermaLink="false">http://jwopitz.wordpress.com/?p=135#comment-4648</guid>
		<description>You can also use curly brackets to dynamically assign XML properties in a more concise way:

var dynamicValueForNodeName :String = &quot;node&quot;;
var xml:XML = ;
trace(xml.toXMLString());// traces &quot;&quot;</description>
		<content:encoded><![CDATA[<p>You can also use curly brackets to dynamically assign XML properties in a more concise way:</p>
<p>var dynamicValueForNodeName :String = &#8220;node&#8221;;<br />
var xml:XML = ;<br />
trace(xml.toXMLString());// traces &#8220;&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarah</title>
		<link>http://jwopitz.wordpress.com/2008/02/27/better-documentation-for-as3s-xml-class-e4x/#comment-4383</link>
		<dc:creator>Sarah</dc:creator>
		<pubDate>Mon, 28 Jul 2008 12:17:34 +0000</pubDate>
		<guid isPermaLink="false">http://jwopitz.wordpress.com/?p=135#comment-4383</guid>
		<description>Gregor: 

You can enclose it in brackets like this [&quot;fade-in&quot;] and it seems to work. At least for me.</description>
		<content:encoded><![CDATA[<p>Gregor: </p>
<p>You can enclose it in brackets like this ["fade-in"] and it seems to work. At least for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jwopitz</title>
		<link>http://jwopitz.wordpress.com/2008/02/27/better-documentation-for-as3s-xml-class-e4x/#comment-4300</link>
		<dc:creator>jwopitz</dc:creator>
		<pubDate>Thu, 19 Jun 2008 15:51:58 +0000</pubDate>
		<guid isPermaLink="false">http://jwopitz.wordpress.com/?p=135#comment-4300</guid>
		<description>what is the syntax you are using to get at it?  I haven&#039;t experienced this problem however I also haven&#039;t had a need to access a node named with a hyphen.  I normally use camelCase.</description>
		<content:encoded><![CDATA[<p>what is the syntax you are using to get at it?  I haven&#8217;t experienced this problem however I also haven&#8217;t had a need to access a node named with a hyphen.  I normally use camelCase.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Grega</title>
		<link>http://jwopitz.wordpress.com/2008/02/27/better-documentation-for-as3s-xml-class-e4x/#comment-4299</link>
		<dc:creator>Grega</dc:creator>
		<pubDate>Thu, 19 Jun 2008 15:24:46 +0000</pubDate>
		<guid isPermaLink="false">http://jwopitz.wordpress.com/?p=135#comment-4299</guid>
		<description>I have a question about XML class. I&#039;m trying to acces tag with name &quot;fade-in&quot; . But it&#039;s just not working, becouse of that &quot;-&quot; sign. I also tried with elements(&quot;fade-in&quot;). 

Is there any elegant solution for this?

Regards,
Gregor Čepek</description>
		<content:encoded><![CDATA[<p>I have a question about XML class. I&#8217;m trying to acces tag with name &#8220;fade-in&#8221; . But it&#8217;s just not working, becouse of that &#8220;-&#8221; sign. I also tried with elements(&#8220;fade-in&#8221;). </p>
<p>Is there any elegant solution for this?</p>
<p>Regards,<br />
Gregor Čepek</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: simon</title>
		<link>http://jwopitz.wordpress.com/2008/02/27/better-documentation-for-as3s-xml-class-e4x/#comment-4198</link>
		<dc:creator>simon</dc:creator>
		<pubDate>Fri, 18 Apr 2008 15:23:18 +0000</pubDate>
		<guid isPermaLink="false">http://jwopitz.wordpress.com/?p=135#comment-4198</guid>
		<description>forget it.</description>
		<content:encoded><![CDATA[<p>forget it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: simon</title>
		<link>http://jwopitz.wordpress.com/2008/02/27/better-documentation-for-as3s-xml-class-e4x/#comment-4197</link>
		<dc:creator>simon</dc:creator>
		<pubDate>Fri, 18 Apr 2008 15:22:48 +0000</pubDate>
		<guid isPermaLink="false">http://jwopitz.wordpress.com/?p=135#comment-4197</guid>
		<description>should read var xml:XML =  ( without the spaces... that part got cut off</description>
		<content:encoded><![CDATA[<p>should read var xml:XML =  ( without the spaces&#8230; that part got cut off</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: simon</title>
		<link>http://jwopitz.wordpress.com/2008/02/27/better-documentation-for-as3s-xml-class-e4x/#comment-4196</link>
		<dc:creator>simon</dc:creator>
		<pubDate>Fri, 18 Apr 2008 15:21:31 +0000</pubDate>
		<guid isPermaLink="false">http://jwopitz.wordpress.com/?p=135#comment-4196</guid>
		<description>If you want to use a variable as node name, you can use the {} notation. For attributes, you have to use the [].

//-------

var nodeName:String = &quot;myNodeName&quot;;
var xml:XML = 
		
var attributeName:String = &quot;hello&quot;;
xml.@[attributeName] = &quot;world&quot;;
				
mx.controls.Alert.show( xml.toXMLString() );

//-------</description>
		<content:encoded><![CDATA[<p>If you want to use a variable as node name, you can use the {} notation. For attributes, you have to use the [].</p>
<p>//&#8212;&#8212;-</p>
<p>var nodeName:String = &#8220;myNodeName&#8221;;<br />
var xml:XML = </p>
<p>var attributeName:String = &#8220;hello&#8221;;<br />
xml.@[attributeName] = &#8220;world&#8221;;</p>
<p>mx.controls.Alert.show( xml.toXMLString() );</p>
<p>//&#8212;&#8212;-</p>
]]></content:encoded>
	</item>
</channel>
</rss>
