Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004
    Location
    India
    Posts
    135

    Thumbs up Unanswered: Error Using DOMXML Open File

    Hi All,

    Error Using DOMXML Open File:

    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

  2. #2
    Join Date
    Feb 2004
    Location
    India
    Posts
    135
    Plz. Urgent.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •