How do I retrieve the node name from XML in Flex / Actionscript
问题 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 回答1: XML: <root> <parentNode> <childNode1>1</childNode1> <childNode2>2</childNode2>