WIERD XML Problem..Please Help

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. 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 make the XML file in Dreamweaver MX on a MAC. Is there some hidden node that it is creating or something? Appreciate any suggestioins. Thanks.