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.insertChildAfter( example.one[0], 1.5 ); example.insertChildBefore( example.two[0], <part>1.75</part> ); trace( example ); } } }