How to insert a new item into an XML file after a certain point

Hi all, so my XML file has some header line and then has this line which I am supposed to put my item under:

<!--  start here  -->

I need to insert an item right under that line, how can I do this?

you can do that with the DOM extension. depending on the surrounding XML structure that can be more or less easy.

alternately, you can search for that string in the XML string (if that’s sufficient) and place the item after that.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.