Mantis - Quercus
Viewing Issue Advanced Details
1981 minor always 08-29-07 13:49 08-29-07 15:51
nam  
 
normal  
closed 3.1.2  
fixed  
none    
none 3.1.3  
0001981: SimpleXML DOCTYPE issue
(rep by S. Sozonoff)

The following gives an empty SimpleXMLElement. If the DOCTYPE is omitted, then the results are correct.

<?php

$xml = <<<TEXT
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ICON_RSP SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.011/cXML.dtd"> [^]
<ICON_RSP SIOBU="12252">
</ICON_RSP>
TEXT;

//$xml_doc = simplexml_load_string($xml);
$xml_doc = new SimpleXMLElement($xml);
var_dump($xml_doc);

?>

Notes
(0002251)
nam   
08-29-07 15:51   
php/1x70