Hi there,
I am trying to update a node in an XML file using PHP.
Here is the XML:
<users>
<user>
<id>1</id>
<firstname>Bob</firstname>
<lastname>Marley</lastname>
</user>
<user>
<id>2</id>
<firstname>Bruce</firstname>
<lastname>Springsteen</lastname>
</user>
</users>
How can I go about searching the XML file for all tags where "id=2" and setting the firstname and lastname nodes to new values?
Any replies would be greatly appreciated!
Mapper