appendChild to XML value : Child : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » Child »

 

appendChild to XML value


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var example:XML = <example/>;
        
        example.appendChild<two>2</two> );
        
        example.prependChild<one>"number 1"</one> );
        
        example.insertChildAfterexample.one[0]1.5 );
        example.insertChildBeforeexample.two[0], <part>1.75</part> );
        
        traceexample );
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo XML
» Child