Using the : Namespace : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » Namespace »

 

Using the


 


package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        var example:XML = <example xmlns:test="http://foo.com/">
                             <test:element>L I</test:element>
                             <test:element test:attribute="D S A" />
                          </example>;
        var test:Namespace = example.namespace("test");
        trace(example.test::element[0]);

    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo XML
» Namespace