Menu
Hello,
I have a XML doc:
<xml>
<item>
<name>name1</name>
<price>price1</price>
</item>
</xml>
I am looking to use PHP to open the XML file and add a node like:
<item>
<name>name2</name>
<price>price2</price>
</item>
To get the final doc (and resave it):
<xml>
<item>
<name>name1</name>
<price>price1</price>
</item>
<item>
<name>name2</name>
<price>price2</price>
</item>
</xml>
I have been searching the internet for ages but can;t find how to do this.
Any suggestions?
Thank you very much for your help,
Sam