Use the namespaceDelarations() method to return an Array of all the namespaces defined for a given element. : Namespace : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » Namespace »

 

Use the namespaceDelarations() method to return an Array of all the namespaces defined for a given element.


 


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

        var example:XML = <example xmlns:test="http://foo.com/"
                                   xmlns:mims="http://A.com/"
                                   xmlns:roger="http://B.com/"
        />;
        trace(example.namespaceDeclarations()[1]);

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo XML
» Namespace