Dear flexcoders,

I have the following XML:

<root>
<Folder id="1"/>
<Folder id="2">
<Station id="1" />
<Station id="7"/>
</Folder>
<Folder id="5" />
</root>

How to determine that XML node, say <Folder id="5"> is located at rool level of 
XML structure?

Pretend that variable 'myNode' contains a reference to <Folder id="5"> XML node.

The following boolean check: myNode.parent()name.toString() != "root" does not 
work for me and it seems to be rigid and insecure.

--
With flex regards,
JabbyPanda

Reply via email to