I have my XML data loading into my SWF OK.
However, is there any way to call that tag name instead of the child node
number?
So instead of something like this:
myDate_txt.text = my_xml.firstChild.childNodes[2];
Can do something like this?
myDate_txt.text = my_xml.firstChild.myDate;
Is that possible? I know that does not work the way it is written, but is
there code that you can do something like that?
And how do you call the next child (cousin) if you have an XML document like
this:
<people>
<friend>
<name>Bob</name>
<age>39</age>
</friend>
<cousin>
<name>Sally</name>
<age>29</age>
</cousin>
</people>
cinemaguy - 12 Dec 2006 21:39 GMT
You can take at look at a couple of the articles of i have on my site. It has both of these things that you are talking about. Let me know if you need further explanation.
The Feldkircher - 15 Dec 2006 19:40 GMT
Hi
Read the Flash Help article related to the XPath API Class, and your XML Parsing will be much easier.
Or go http://www.macromedia.com/go/xpathapi.
Hope it helps