0 Replies Latest reply on Apr 16, 2010 8:53 AM by Zolotoj

    Delete XML

    Zolotoj Level 3

      I want to remove some elements from an XML data that looks like this:

      var x1:XML = <x1>

           <a>

                ...

                ...

           </a>

           <b>

                ...

                ...

           </b>

      </x1>;

       

      delete x1.a works fine, but how can I do the same with an element represented by a variable?

      delete x1.varname

       

      Thanks