#40795 [NEW]: Unable to load the XML file

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #40795 [NEW]: Unable to load the XML file

    From: nags_chevula at us dot ibm dot com
    Operating system: WIN XP
    PHP version: 4.4.6
    PHP Bug Type: DOM XML related
    Bug description: Unable to load the XML file

    Description:
    ------------
    Unable to parse the following XMl file.

    <?xml version="1.0"?>
    <Contact>
    <Name>Nagarjun</Name>
    <Phone>111-222-3333</Phone>
    </Contact>
    <Contact>
    <Name>Debabrata</Name>
    <Phone>222-777-3333</Phone>
    </Contact>
    <Contact>
    <Name>Andrea</Name>
    <Phone>333-777-3333</Phone>
    </Contact>
    <Contact>
    <Name>Charlotte</Name>
    <Phone>444-777-3333</Phone>
    </Contact>



    I was able to parse the file
    <?xml version="1.0"?>
    <Contact>
    <Name>Nagarjun</Name>
    <Phone>111-222-3333</Phone>
    </Contact>


    Reproduce code:
    ---------------
    $file = "C:/temp2/SNZ/input/testxml.xml";

    if (!$DomDocument = domxml_open_file($file)){
    echo "Couldn't load xml...";
    exit;
    }


    Expected result:
    ----------------
    I did not want to see the error "Couldn't load xml"

    Actual result:
    --------------
    [13-Mar-2007 11:23:26] PHP Warning: domxml_open_file() [<a
    href='function.domxml-open-file'>function.domxml-open-file</a>]: Extra
    content at the end of the document
    in C:\IBM\IBMHTTPServer\htdocs\en_US\Nags\ParseXMLFil e1.php on line 12


    --
    Edit bug report at [url]http://bugs.php.net/?id=40795&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40795&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40795&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40795&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40795&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=40795&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=40795&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40795&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=40795&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=40795&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=40795&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=40795&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=40795&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=40795&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40795&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=40795&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=40795&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40795&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=40795&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40795&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40795&r=mysqlcfg[/url]
    nags_chevula at us dot ibm dot com Guest

  2. Similar Questions and Discussions

    1. unable to load SWC datavisualization.swc
      I am trying to load the new features of the FLEX 3 Charts into an application that is 'compiled-on-the-server' and I keep getting this message: ...
    2. Unable to load .dlls
      :mad;I've tried downloading Adobe Shockwave a dozen times; used to use Macromedia 8.0 without any problem, but with the Adobe version, I get the...
    3. Unable to load module
      Hi, I had to do a workaround during installation of a Perl module. Since the client's machine does not permit installation of a C compiler, I...
    4. The file failed to load in the Web Form designer ... Unable to cast object of type myServicedComponentClass ...
      I have a user control that inherits from a base user control class. I can view and edit the base user control in the designer. However, my child...
    5. Help! Unable to load DLLs.
      Got error message: Unable to load dynamic library '.\extension\php_mssql.dll' - The specified module could not be found. I tried change php.ini...
  3. #2

    Default #40795 [Opn->Bgs]: Unable to load the XML file

    ID: 40795
    Updated by: [email]chregu@php.net[/email]
    Reported By: nags_chevula at us dot ibm dot com
    -Status: Open
    +Status: Bogus
    Bug Type: DOM XML related
    Operating System: WIN XP
    PHP Version: 4.4.6
    New Comment:

    Your XML is not well-formed. There's no single root element.

    Clearly not a PHP issue


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-03-13 17:29:06] nags_chevula at us dot ibm dot com

    Description:
    ------------
    Unable to parse the following XMl file.

    <?xml version="1.0"?>
    <Contact>
    <Name>Nagarjun</Name>
    <Phone>111-222-3333</Phone>
    </Contact>
    <Contact>
    <Name>Debabrata</Name>
    <Phone>222-777-3333</Phone>
    </Contact>
    <Contact>
    <Name>Andrea</Name>
    <Phone>333-777-3333</Phone>
    </Contact>
    <Contact>
    <Name>Charlotte</Name>
    <Phone>444-777-3333</Phone>
    </Contact>



    I was able to parse the file
    <?xml version="1.0"?>
    <Contact>
    <Name>Nagarjun</Name>
    <Phone>111-222-3333</Phone>
    </Contact>


    Reproduce code:
    ---------------
    $file = "C:/temp2/SNZ/input/testxml.xml";

    if (!$DomDocument = domxml_open_file($file)){
    echo "Couldn't load xml...";
    exit;
    }


    Expected result:
    ----------------
    I did not want to see the error "Couldn't load xml"

    Actual result:
    --------------
    [13-Mar-2007 11:23:26] PHP Warning: domxml_open_file() [<a
    href='function.domxml-open-file'>function.domxml-open-file</a>]: Extra
    content at the end of the document
    in C:\IBM\IBMHTTPServer\htdocs\en_US\Nags\ParseXMLFil e1.php on line
    12



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40795&edit=1[/url]
    chregu@php.net Guest

  4. #3

    Default #40795 [Bgs]: Unable to load the XML file

    ID: 40795
    User updated by: nags_chevula at us dot ibm dot com
    Reported By: nags_chevula at us dot ibm dot com
    Status: Bogus
    Bug Type: DOM XML related
    Operating System: WIN XP
    PHP Version: 4.4.6
    New Comment:

    I know it is not a requirement to have a single root element. I can
    have multiple root elements based on DTD definition.

    Does inclusion of DTD definition make my document well formed.

    Correct me if I am wrong?

    I am under the impression that I can have multiple root elements. I
    need to go back and read XML Specs.

    I would appreciate your response.

    thanks
    Nags


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-03-13 18:39:45] [email]chregu@php.net[/email]

    Your XML is not well-formed. There's no single root element.

    Clearly not a PHP issue

    ------------------------------------------------------------------------

    [2007-03-13 17:29:06] nags_chevula at us dot ibm dot com

    Description:
    ------------
    Unable to parse the following XMl file.

    <?xml version="1.0"?>
    <Contact>
    <Name>Nagarjun</Name>
    <Phone>111-222-3333</Phone>
    </Contact>
    <Contact>
    <Name>Debabrata</Name>
    <Phone>222-777-3333</Phone>
    </Contact>
    <Contact>
    <Name>Andrea</Name>
    <Phone>333-777-3333</Phone>
    </Contact>
    <Contact>
    <Name>Charlotte</Name>
    <Phone>444-777-3333</Phone>
    </Contact>



    I was able to parse the file
    <?xml version="1.0"?>
    <Contact>
    <Name>Nagarjun</Name>
    <Phone>111-222-3333</Phone>
    </Contact>


    Reproduce code:
    ---------------
    $file = "C:/temp2/SNZ/input/testxml.xml";

    if (!$DomDocument = domxml_open_file($file)){
    echo "Couldn't load xml...";
    exit;
    }


    Expected result:
    ----------------
    I did not want to see the error "Couldn't load xml"

    Actual result:
    --------------
    [13-Mar-2007 11:23:26] PHP Warning: domxml_open_file() [<a
    href='function.domxml-open-file'>function.domxml-open-file</a>]: Extra
    content at the end of the document
    in C:\IBM\IBMHTTPServer\htdocs\en_US\Nags\ParseXMLFil e1.php on line
    12



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40795&edit=1[/url]
    nags_chevula at us dot ibm dot com Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139