Use the dot operator (.) on the XML instance and add the element : XML Element : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » XML Element »

 

Use the dot operator (.) on the XML instance and add the element


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var example:XML = <example />;
        // Create a new XML node named newElement and add it to the example instance
        example.newElement = <newElement />;
        traceexample );
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo XML
» XML Element