3 Replies Latest reply: Apr 17, 2007 3:49 PM by 807606 RSS

    Add a new node to an existing xml using Java (JAXP)


      I have not used JAXP before and hence a bit of help would be appreciated. I have a xml doc that i need to add a new node too.
      The original xml is
      <abc hit="1" run="2">

      The new xml should be
      <abc hit="1" run="2">
      <def newhit="1" newrun="2"/>

      Can you please tell me how to process the original xml doc in order to convert it to the new xml doc.