6 Replies Latest reply on Jul 7, 2013 12:18 PM by myannou

    How to insert xml node before or after another one ?

    myannou

      Hello,

       

      In a forge plugin I use the XMLParser Forge API to parse a web.xml file.

      And in this file I need to insert a new node (servlet for instance) not at the end of the web.xml, but just after the last servlet node.

       

      I tried to use webXmlNode.createChild("servlet") but I cannot control where exactly I insert this node.

      How to acheive this ?

       

      Thanks

      Yann