I have some data xml data that looks like this
<root xsi:noNamespaceSchemaLocation="test1.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<configuration>
<CLICK/>
<KLT/>
<DETd/>
</configuration>
</root>
I get a list of the configurations using
var results:XMLList = xml.configuration.*;
Now I want to loop over the XMLList and output CLICK, KLT, DETd etc. but how in XML do I get the node name as such
Best Answer
XML:
All you need to do is use
.name()
while iterating throughparentNode
'schildren()
.More: