Hi
<?xml version=“1.0” encoding=“ISO-8859-1”?>
<staff>
<firstname>ABC</firstname>
<lastname>DEF</lastname>
</staff>
I created a XML document like this. Then I do this in Flash:
var staffInfoXML = new XML()
staffInfoXML.ignoreWhite = true
staffInfoXML.load("./testing.xml")
staffInfoXML.onLoad = function(success) {
if (success) {
listStaff(staffInfoXML)
}
}
function listStaff(xmlInput) {
for (a in xmlInput.firstChild.childNodes) {
//trace(a + " " + xmlInput.firstChild.childNodes[a])
}
trace(xmlInput.firstChild.firstChild.nodeValue)
}
The output is null no matter what. How can I solve this problem?
Thanks in advance,
WKT