Code: Select all
$dom = new DOMDocument('1.0', 'UTF-8');
$dom->load('/rawInventory.xml');
$xpath = new DOMXPath($dom);
$sohs = $xpath->query('/ac//soh');
//changes are made then the file is saved:
$dom->save('/rawInventory.xml');Moderator: General Moderators
Code: Select all
$dom = new DOMDocument('1.0', 'UTF-8');
$dom->load('/rawInventory.xml');
$xpath = new DOMXPath($dom);
$sohs = $xpath->query('/ac//soh');
//changes are made then the file is saved:
$dom->save('/rawInventory.xml');