var xml: XML = <root xmlns:space="http://www.something.com"> <space:tag> <node>Hello, world!</node> </space:tag> </root>;
It is possible to reference node containing Hello, world! using the following:
var node: XML = xml.*::space.node;
var xml: XML = <root xmlns:space="http://www.something.com"> <space:tag> <node>Hello, world!</node> </space:tag> </root>;
var node: XML = xml.*::space.node;
var xml: XML = <root xmlns:space="http://www.something.com"> <space:tag> <node>Hello, world!</node> </space:tag> </root>; trace( xml.hasOwnProperty( "tag" ) );
xml.hasOwnProperty( new QName( "http://www.something.com", "tag" ) )
namespace space = "http://www.something.com"; // ... xml.hasOwnProperty( new QName( space, "tag" ) )
<root xmlns:space="http://www.something.com"> <space:tag> <node>Hello, world!</node> </space:tag> </root>
namespace space = "http://www.something.com"; var helloWorld: String = xml.space::tag.node.toString( );
namespace different = "http://www.something.com"; var helloWorld: String = xml.different::tag.node.toString( );