/ Published in: ActionScript 3
Expand |
Embed | Plain Text
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> */
Comments
Subscribe to comments
You need to login to post a comment.

no it is not a bug.. its the normal behavior.. if it finds a single value it's a XML value.. if finds more than one you get a XMLList..