# WIERD XML Problem...please help

**URL:** <https://forum.kirupa.com/t/wierd-xml-problem-please-help/83539>\
**Category:** flash\
**Created:** [March 20, 2005, 12:12am UTC](https://forum.kirupa.com/t/wierd-xml-problem-please-help/83539 "2005-03-20T00:12:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gumby19](https://avatars.discourse-cdn.com/v4/letter/g/3da27b/32.png) [@Gumby19](https://forum.kirupa.com/u/Gumby19)\
**Post date:** [March 20, 2005, 12:12am UTC](https://forum.kirupa.com/t/wierd-xml-problem-please-help/83539/1 "2005-03-20T00:12:04Z")

</div>

Ok, I’ve worked with XML and Flash alot, but never on a MAC. That’s what I’m trying to do now. Here is the problem. Say I have this in my XML File:

> 

\<people\>  
\<first\>John\</first\>  
\<middle\>Charles\</middle\>  
\<last\>Doe\</last\>  
\</people\>  
\<people\>  
\<first\>Jane\</first\>  
\<middle\>Alice\</middle\>  
\<last\>Smith\</last\>  
\</people\>

and this in my flash file:

> 

peopleXML = new XML();  
peopleXML.onLoad = function(success) {  
}  
peopleXML.load(“test.xml”);

This will give me value of John:

> trace(peopleXML.childNodes[0].childNodes[1])

This will give me a value of Charles:

> trace(peopleXML.childNodes[0].childNodes[3])

This will give me a value of Doe:

> trace(peopleXML.childNodes[0].childNodes[5])

Notice I have 1, 3, 5 for my last childNodes values. I should be able to put 0, 1, 2 respectively in those brackets to get those trace values. If I put a 2 there and trace it, I get an output box, but it is completely blank. I’m completely boggled!! Surely someone has come across the problem.  
I made the XML file in Dreamweaver MX on a MAC. Is there some hidden node that it is creating or something? Appreciate any suggestioins. Thanks.
