1 Reply Latest reply on Apr 19, 2013 6:48 AM by kglad

    remove attribute in xml

    A.kameshwaran Level 1

      Hi

           How to delete/remove the attributes from the xml.

        • 1. Re: remove attribute in xml
          kglad Adobe Community Professional & MVP

          use "delete".

           

          for example:

           

          with:

           

          var xml:XML=<e>


                <employee id='41'>
                    <name>
                        John Doe
                    </name>
                    <address>
                        601 Townsend St.
                    </address>
                </employee>
               
                <employee id='42'>
                    <name>
                        Jane Q. Public
                    </name>
                </employee>
                <department id="IT">
                    Information Technology
                </department>
                </e>

           

          delete xml.firstChild.firstChild.attributes["id"]