This is my first post on this forum, so sorry If Im posting in the wrong spot or asking stupid questions. I’ve been programing for several years, but I’m kinda new to using XML in flash.
I’m making an xml menu system and I would like to know if it is possible to filter without a defining the parent node. For example I would like to do this…
var whatIwantToFind = myXML…(@name == ‘munkinugget’);
Unfortunately this throws a syntax error. It tells me that its expecting a double colon before the semicolon.
This however…
var whatIwantToFind = myXML.*.(@name == ‘munkinugget’);
Will return a value but only within the children of myXML, it wont dig any deeper then the first child nodes.
So basically I want to return a list of all (@name == ‘munkinugget’) regardless of their hierarchy within the XML document. If anyone has any suggestions please post them, I’m stuck at the moment.
Thanks!