HOPEFULLY this will be pretty quick and painless…
I’m having what seems to be a pathing problem with xml and firstChild/childNodes. I’m trying to fill one dynamic textbox with the “city” and another text box with “zip” but can’t seem to get it.
I have and xml file that looks like this
<database>
−
<signer>
<city>rome, italy</city>
<zip>
2121212112 </zip>
</signer>
</database>
and my AS code looks like this
theXML.onLoad = function() {
var nodes = this.firstChild.childNodes;
for (i=0; i<nodes.length; i++) {
citybox.text +=(nodes*.firstChild.childNodes[0].nodeValue+ "
");
zipbox.text +=(nodes*.firstChild.childNodes[1].nodeValue+ "
");
}
}