this is just a sample of loading xml so i can learn how it works…
actionscript:
var xmlTest = new XML();
xmlTest.ignoreWhite = true;
xmlTest.load(“xml_test.xml”);
var xnAuthor = xmlTest.firstChild.firstChild.firstChild;
trace(xnAuthor);
var xnTitle = xmlTest.firstChild.firstChild.nextSibling.firstChild;
trace(xnTitle);
_root.txtAuthor.text = xnAuthor.nodeValue;
_root.txtTitle.text = xnTitle.nodeValue;
the last 2 lines are textinput components to show the author and title…
xml file: xml_test.xml
<?xml version=“1.0”?>
<book>
<author>Mark Twain</author>
<title>Huckelbary Finn</title>
</book>
it must be something incredibly simple… but i cant find it… can anyone help?