I would like to ask, how to easily append new node to the end of found node in php. Lets say I have xml like this:
<Root>
<child id=1>
<text>smth</text>
</child>
</Root>
I want to find the child element with id 1 and then append another node as last. I was trying to find an answer, but it either answer how to find it, or how to write into it, unfortunately I was not able to put it together.
I would be really happy if someone can help me with this.