0 Replies Latest reply on May 16, 2014 12:39 AM by Gejaraja

    How to add sub tag to the parent tag?

    Gejaraja Level 1

      Hello All,

       

      I'd like to have the sample to add the sub-tag to the parent tag, I've tried with below coding, but not meeting my requirements:

       

      var myAttrib = myDoc.xmlElements[0].xmlElements.add(myTag, myText);

      myAttrib.xmlAttributes.add("TYPE","bold");

      var myAttrib1 = myAttrib.xmlElements.add(myTag, myText);

      myAttrib1.xmlAttributes.add("TYPE","italic");

       

      Please advise.

       

      Thanks,

       

      Praveen