<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title><![CDATA[Sephiroth's forums, flash, php, amf, python - Flash ActionScript 2.0]]></title>
		<link>http://forum.sephiroth.it//</link>
		<description>ActionScript 2 is the Object Oriented Flash Scripting language released with Flash MX 2004.</description>
		<language>en</language>
		<lastBuildDate>Fri, 10 Sep 2010 19:35:04 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forum.sephiroth.it/images/misc/rss.png</url>
			<title><![CDATA[Sephiroth's forums, flash, php, amf, python - Flash ActionScript 2.0]]></title>
			<link>http://forum.sephiroth.it//</link>
		</image>
		<item>
			<title>Help with Embedded XML in AS2</title>
			<link>http://forum.sephiroth.it//showthread.php?13577-Help-with-Embedded-XML-in-AS2&amp;goto=newpost</link>
			<pubDate>Fri, 10 Sep 2010 15:11:03 GMT</pubDate>
			<description><![CDATA[Although I've done some actionscripting for years with XML successfully, I've never ever felt a need to hardcode xml into my scripts before now. Due...]]></description>
			<content:encoded><![CDATA[<div>Although I've done some actionscripting for years with XML successfully, I've never ever felt a need to hardcode xml into my scripts before now. Due to a unique situation, I cannot load the xml from an external file and thus I need to paste it into the script like this:<br />
<br />
var myXML:XML = new XML('&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />
&lt;configuration&gt;<br />
  &lt;id&gt;91490&lt;/id&gt;<br />
  &lt;url&gt;https://cloud.skytap.com/configurations/91490&lt;/url&gt;<br />
  &lt;name&gt;L Series HOT August 2010&lt;/name&gt;<br />
  &lt;runstate&gt;stopped&lt;/runstate&gt;<br />
  &lt;owner&gt;https://cloud.skytap.com/users/1959&lt;/owner&gt;<br />
<br />
  &lt;suspend_on_idle&gt;3600&lt;/suspend_on_idle&gt;')<br />
// rest of xml doc is not shown for brevity, but rest assured it is a well-formed xml doc<br />
<br />
When I try to publish I get a ton of errors from Flash, all due to the special characters of '&lt;', '&gt;', etc. etc.<br />
<br />
Here is basically the relevant code:<br />
<br />
myXML.ignoreWhite = true;<br />
trace(escape(myXML)); // outputs the XML as expected<br />
var rootNode:XMLNode = myXML.firstChild; //outputs 'undefined'<br />
<br />
It seems that the non-A thru Z and 0 thru 9 characters are choking this thing. What can I do?<br />
<br />
Again - I cannot load the XML remotely. I found that out the hard way. The server that this swf is going to be uploaded to is Adobe Connect (into a Share Pod in a Meeting Room), and those pods don't allow loading of external files. So the xml has to be in the code.<br />
<br />
Also, the XML is pretty lengthy, and it will change often (the user has flash and will be pasting the new xml each time, then republishing). So manually going through and escaping any characters in the xml is not a solution either. Help!</div>

 ]]></content:encoded>
			<category domain="http://forum.sephiroth.it//forumdisplay.php?16-Flash-ActionScript-2-0">Flash ActionScript 2.0</category>
			<dc:creator>mark2741</dc:creator>
			<guid isPermaLink="true">http://forum.sephiroth.it//showthread.php?13577-Help-with-Embedded-XML-in-AS2</guid>
		</item>
	</channel>
</rss>
