Possible Duplicate:
How to solve “call to undefined function domxml_new_doc()…”
I’m using php5, when I try initializing a domxml_new_doc() it gives following error
Call to undefined function domxml_new_doc()
I checked phpinfo and found that DOM/XML is enabled…
Here is the code line which gives me the error
$doc = domxml_new_doc("1.0");
As suggested by KingCrunch, you’re likely to be using PHP5. In that case, just use DomDocument instead.
However if you’re still using PHP4, then the following test will tell you whether the extension is loaded:
If it returns false, then you have to enable the domxml library.
If you can modify php.ini, then locate a line
extension=domxml.so(unix) orextension=domxml.dll(windows), uncomment it, then restart the web server.If you cannot find this line, then you may have to install this library, which is outside the scope of this question 🙂