3 Replies Latest reply on Sep 14, 2010 6:30 AM by Barqx

    Adding attribute to existing XML file

    Barqx Level 1

      I have an XML "XML.xml" which contains the following structure:

       

      <TagA>
           <TagB description = "example"/>
      </TagA>
      

       

      How, using JavaScript, can I add an attribute to TagB to modify Xml.xml to contain the following:

      <TagA>
           <TagB description = "example" description2 = "example2"/>
      </TagA>