Page 1 of 1

Error Using DOMXML Open File:

Posted: Sat Jul 10, 2004 4:17 am
by saravanan.r
Hi All,

I am using Apache 1.3.8 & Php 4.3.6 in Windows Platform. I am executing the PHP file in this Directory D:\Saravanan , in the same directory
am having the XML File.

The given statement occurs Error as Follows:
Warning: domxml_open_file(): warning: in d:\saravanan\machinelist.php on line 3
Warning: domxml_open_file(): failed to load external entity "machineList.xml" in d:\saravanan\machinelist.php on line 3
Error while parsing the document

My Code:

If(!$dom = domxml_open_file("machineList.xml")) {
echo "Error while parsing the document\n";
exit;
}

If I give xml file with Real Path It execute without Error.

If(!$dom = domxml_open_file("D:\Saravanan\machineList.xml")) {
echo "Error while parsing the document\n";
exit;
}

let me know why?

Thanx in advance