/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var xml1:XML = <foo> <bar>foobar</bar> </foo>; var xml2:XML = <foo> <bar>foobar</bar> <bar>barfoo</bar> </foo>; trace(xml1.children()); /* returns foobar */ trace(xml2.children()); /* returns <bar>foobar</bar> <bar>barfoo</bar> */