0 Replies Latest reply on Aug 24, 2010 4:12 AM by $Nith$

    Adding new node to XML variable - How to?

    $Nith$ Level 4

      I have an xml variable (named myXML) with the following node:

       

      <MyInfo>

      </MyInfo>

       

      I need to add two <Dept> nodes to the above XML using SetValue.

       

      I tried to assing these two nodes, but only one node is added.

       

      /process-data/myXML/MyInfo/Dept   = "Department1"

      /process-data/myXML/MyInfo/Dept   = "Department2"

       

      The above statement overwrite the first statement.

       

       

      What can I do to get the following result??

       

      <MyInfo>

           <Dept>Department 1</Dept>

           <Dept>Department 2</Dept>

      </MyInfo>

       

       

      Thanks for any advise..

      Nith