Bug #17779 Updated: DOMXML can't handle SYSTEM DTD
ID: 17779
Updated by: derick@php.net
Reported By: flying@dom.natm.ru
-Status: Open
+Status: Feedback
Bug Type: DOM XML related
Operating System: Windows 2000
PHP Version: 4.2.1
New Comment:
Does it work when you use the full path to that file in your XML file?
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-06-16 05:47:17] flying@dom.natm.ru
DOMXML module can't load XML documents, containing SYSTEM DTD. Here is
example:
test.xml
========
<?xml version="1.0"?>
<!DOCTYPE root SYSTEM "ext.dtd">
<root>&test;</root>
ext.dtd
=======
<!ENTITY test "***TEST***">
Loading this document as:
$xml = xmldoc(join('',file('test.xml')));
Throws warning about undefined entity &test;
Loading this document as:
$xml = xmldoc(join('',file('test.xml')),DOMXML_LOAD_COMPLETE_ATTRS);
Throws warning: Warning: failed to load external entity "ext.dtd"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17779&edit=1
Thread (10 messages)