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