#29684 [NEW]: Error loading XML or XSL files with DomXML
| From: | powerblade at mail dot dk | Date: | Sat, 14 Aug 2004 22:52:23 +0000 |
| Subject: | #29684 [NEW]: Error loading XML or XSL files with DomXML | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-64619@lists.php.net to get a copy of this message | ||
From: powerblade at mail dot dk
Operating system: Windows XP
PHP version: 5CVS-2004-08-15 (dev)
PHP Bug Type: DOM XML related
Bug description: Error loading XML or XSL files with DomXML
Description:
------------
PHP simply won't load the XML file.
Whenever it loads the file, it seems like it empties it out.
I think they have the same problem here:
http://mail.gnome.org/archives/xml/2001-June/msg00153.html
Reproduce code:
---------------
index.php:
<?php
$oXML = new domdocument();
$oXML->loadXML('example.xml');
echo "done...";
?>
example.xml:
<?xml version="1.0" encoding="UTF-8"?>
<topic subject="Topic subject" tid="1">
<posts>
<post pid="1" mid="1" cdate="01-02-2003"
mdate="05-04-2004"
username="PowerBlade">
Blah blah blah
</post>
</posts>
</topic>
Expected result:
----------------
done...
Actual result:
--------------
Warning: DOMDocument::loadXML() [function.loadXML]: Start tag expected,
'<' not found in Entity, line: 1 in W:\Apache2\htdocs\test\index.php on
line 5
done...
--
Edit bug report at http://bugs.php.net/?id=29684&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29684&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29684&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29684&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29684&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29684&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29684&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29684&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29684&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29684&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29684&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29684&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29684&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29684&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29684&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29684&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29684&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29684&r=float