To return specific attributes of an xml node, you can use the @[attribute] reference – pretty handy.
Eg, with this xml:
<question file="test_file.swf">
You can call that file attribute using the below:
myXMLList.question[0].@file; // returns test_file.swf
Leave a Reply