HOw to find specific child node in XML using AS3 flash
Posted
by Mirage
on Stack Overflow
See other posts from Stack Overflow
or by Mirage
Published on 2010-06-02T03:29:11Z
Indexed on
2010/06/02
3:33 UTC
Read the original article
Hit count: 222
Xml
|actionscript-3
I have this xml
var testXML:XML = <family>
<father name1="tom" age="5" ><father1 name1="test1"/><father2 name1="test2"/></father>
<mother name1="tomylee" age="55" ><mother1/><mother2/></mother>
<sister name1="sister1" age="35" ><sister1/><sister2/></sister>
</family>;
I want to get the child node with name1 = test1 but i only know family
so is there something like
trace (testXML.children(@name1="test1");
I only know the family node , i don't know where that node is inside the father or not
is there any filter can be applied on root node to find something
© Stack Overflow or respective owner