E4X


Semantics:

@ – attribute accessor.

var xml:XML = <node foo="bar"/>;
trace(xml.@foo); //traces bar
trace(xml.@["foo"]); //traces bar
trace(xml["@foo"]); //traces bar

. (dot) – child accessor.

var xml:XML = <node><childNode/></node>;
trace(xml.childNode.toXMLString());
Advertisements

About ayumilove

I am Ayumilove, if you see some impersonators its not me.
%d bloggers like this: