I have the following XML structure, and I would like to have code that:
INSERTS
DELETES
Delete an entire element based on its TITLE value.
Replace the publisher’s value with another value
<Game type="XXX">
<TITLE>XXX</TITLE>
<PUBLISHER>XXX</PUBLISHER>
</Game>
This is my XML structure:
<?xml version="1.0" encoding ="utf-8"?>
<GameStore>
<Game type="adventure">
<TITLE>Assassin's Creed: Brotherhood</TITLE>
<PUBLISHER>Ubisoft</PUBLISHER>
</Game>
<Game type="adventure">
<TITLE>Batman: Arkham Asylum</TITLE>
<PUBLISHER>Eidos</PUBLISHER>
</Game>
</GameStore>
You will need to learn http://www.php.net/manual/fr/book.dom.php for manipulating xml.
There is some hints :