Hi All,
Hoping that someone can help me out there. We have written some code to allow editing of an xml file, this code loads an xml doc using DOMDocument, we are then doing an xpath expression on it and some ther processing. this is working fine on my wamp install on my PC, but putting onto our staging server is failing with an error:
Fatal error: Class 'DOMDocument' not found
this is the code
we are running php 5.2.x and accoring to the docs, domdocument is supported in 5>
anyone have any ideas?
Thanks
Tony
Hoping that someone can help me out there. We have written some code to allow editing of an xml file, this code loads an xml doc using DOMDocument, we are then doing an xpath expression on it and some ther processing. this is working fine on my wamp install on my PC, but putting onto our staging server is failing with an error:
Fatal error: Class 'DOMDocument' not found
this is the code
Code:
$xml = new DOMDocument;
$xml->load('section_text.xml');
$xpath = new DOMXpath($xml);
$nodelist = $xpath->query('//item[@id=3]');
$oldnode = $nodelist->item(0);
we are running php 5.2.x and accoring to the docs, domdocument is supported in 5>
anyone have any ideas?
Thanks
Tony