the content for a site i'm building is stored in xml files, so that it can be used for the no script/flash version of the site, and the full version. the xml file looks like this:
the no script version works through aspx, and is lovelly. the flash version looks like this:
hashtable is my own class, it's self explanitory (just assume it works, 'cos it does). the trace output ii'm getting is this:
what do i need to do to get the entire content from the xml file, instead if it cropping at the '<' character?
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<siteContent id="tester">
<html id="sample">
some text
</html>
<html id="sample2">
some <i>other</i> text
</html>
</siteContent>
the no script version works through aspx, and is lovelly. the flash version looks like this:
Code:
stop();
var epDoc:XML = new XML();
epDoc.ignoreWhite = true;
epDoc.load(pageName + ".xml");
epDoc.onLoad = function(success)
{
if(success)
{
var matter:Hashtable = new Hashtable;
for(var i:Number=0; i<int(this.childNodes[0].childNodes.length); i++)
{
matter.addItem(this.childNodes[0].childNodes[i].attributes.id, this.childNodes[0].childNodes[i].firstChild);
}
trace("SAMPLE2: " + matter.getItem("sample2"));
_root.play();
}
}
hashtable is my own class, it's self explanitory (just assume it works, 'cos it does). the trace output ii'm getting is this:
Code:
SAMPLE:
some
what do i need to do to get the entire content from the xml file, instead if it cropping at the '<' character?