Create a new element by creating a property on the XML instance and assigning it a value : XML Element : XML Flash / Flex / ActionScript examples


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

 

Create a new element by creating a property on the XML instance and assigning it a value


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var example:XML = <example />;
        // Create a new property emptyElement and assign it an empty string value
        example.emptyElement = "";
        
        traceexample );

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo XML
» XML Element