I want to modify my xml file in PHP based on the following criteria.
my xml structure look like this:
Document Object Model (DOM) is the answer.
$dom=new DomDocument(); $dom->Load("file.xml"); $root=$dom->documentElement; ... $dom->Save("file.xml"); ?>