Search This Blog

Monday, 12 October 2009

XML Namespace

Any questions how to use Namespaces in XML ?

http://www.senocular.com/flash/tutorials/as3withflashcs3/?page=4

Short usage instructions:

var xml : XML =  <root xmlns="namespaceURI"><mynode></mynode></root>

var ns:Namespace = new Namespace( 'namepaceURI' );
xml.ns::myNode[0] = "myvalue"; 
 
Use * to ignore namespace :
xml.*::myNode[0]; 

No comments:

Post a Comment