Could someone please provide the simplest/shortest code that can edit the values within an xml node? I have been searching this for hours and all that I get are errors and failures. I need something that can get the node (/node/node1/node2) and edit the contents within it. I am using php-5. Thanks
Edit: Lets say I have this xml file:
<node>
<node2>
Content
</node2>
</node>
What I need to do is change the value of <node2>
from "content"
to something else.