To replace an XML element with new elements, we assign either an XMLList or XML object to that element : XMLList : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » XMLList »

 

To replace an XML element with new elements, we assign either an XMLList or XML object to that element


 

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

        var doc:XML = <DOC>
            <P ALIGN="CENTER">E4X is fun</P>
          </DOC>;
        doc.P = <DIV>E4X is convenient</DIV>;
        
        trace(doc.P);

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo XML
» XMLList