4 Replies Latest reply on Aug 2, 2016 12:13 AM by karthiks94217840

    Create a root element to a bunch of elements with same name

    aviR Level 1

      Hii All

      I have an xml like this:

      <root>

      <child></child>

      <child></child>

      <child></child>

      <child></child>

      <child></child>

      </root>

       

      I want to create another element and add all the child tags to that element. example:

      <root>

      <ChildRoot>

         <child></child>

         <child></child>

         <child></child>

         <child></child>

         <child></child>

      </ChildRoot>

      </root>

      There is no definite number of child tag. How can i do it?

      Please suggest

      Thanks