# Flash and XML

**URL:** <https://forum.kirupa.com/t/flash-and-xml/273708>\
**Category:** Uncategorized\
**Created:** [October 19, 2008, 2:46pm UTC](https://forum.kirupa.com/t/flash-and-xml/273708 "2008-10-19T14:46:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wkt](https://avatars.discourse-cdn.com/v4/letter/w/ed655f/32.png) [@wkt](https://forum.kirupa.com/u/wkt)\
**Post date:** [October 19, 2008, 2:46pm UTC](https://forum.kirupa.com/t/flash-and-xml/273708/1 "2008-10-19T14:46:31Z")

</div>

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
