Posted By

mediapoint on 03/02/11


Tagged

xml reverse as3 XMLList


Versions (?)

xml reverse


 / Published in: ActionScript 3
 

URL: http://www.mediapoint.gr/

  1. var xml:XML =
  2. <xml>
  3. <a/>
  4. <b/>
  5. <c/>
  6. <d/>
  7. </xml>;
  8. var result:XMLList = new XMLList();
  9. var list:XMLList = xml.*.(result = XML(toXMLString()) + result);
  10. trace(xml.toXMLString());
  11.  
  12. var result2:XML = new XML();
  13. result2 = <newXML/>
  14. for each (var xxm:XML in result)
  15. {
  16. result2.appendChild(xxm)
  17. }
  18. trace(result2)

Report this snippet  

You need to login to post a comment.