0 Replies Latest reply on Feb 19, 2016 12:50 AM by Sudha K

    Create parent element without changing the content

    Sudha K Level 1

      Hi,

       

           I need to add parent element to the selection element without changing the content.  If I use the below code content order is changed.  How to create parent tag without changing the content order.. Can anyone guide me...

       

       

      var refXE = app. selection[0];               // Element selection

      var parentXmlElet = parentElt.parent.xmlElements.add (eltName);

      parentElt.move(LocationOptions.UNKNOWN , parentXmlElet)

       

       

      parentElement.png

       

       

      Thanks in advance,

      Sudha K