I'm really frustrated now since I do not seem to understand why it is that difficult to copy a node (with all the childs) from one XML tree to another.
I googled alot and it seems that I have to read the trees in with SimpleXML and then parse the nodes to DOM to import/export them somehow. Should there be a function doing this in one rush?
Basically I want to copy from the source all processList->process entries to destination test->processList-> .
source:
<processList>
<process ...>
//some more child nodes
</process>
</processList>
destination:
<test>
<processList>
<process ...>
//some more child nodes
</process>
</processList>
</test>
Can someone please advise?