How can I get through another child of XML file than firstChild in PHP? I have a code like this:
$root = $xmldoc->firstChild;
Can I simply get into second child or another?
How can I get through another child of XML file than firstChild in PHP? I have a code like this:
$root = $xmldoc->firstChild;
Can I simply get into second child or another?
A possible solution to your problem could be something like this. First your XML structure. You asked how to add an item node to the data node.
In PHP one possible solution is the DomDocument object.
This code example is not tested. Have fun. ;)