Search code examples
actionscript-3apache-flexflex3

to get leaf nodes directly in actionscript


in a complex XML where I dont know the leaf node names/or the level of depth they are, how could I extract all the leaf nodes inside a XMLList variable directly?

Thanks.


Solution

  • Since no one has replied so far, I am assuming that there is no easy using ECMA to achieve this for a generic XML... and that leaves UDF as the only choice (the function would recursively keep checking if there are any childs left - if not then its a leaf).

    Thanks Guys.