ID: 42609 Updated by: [EMAIL PROTECTED] Reported By: nbijnens at servs dot eu -Status: Open +Status: Bogus Bug Type: SimpleXML related Operating System: Debian 4 Etch PHP Version: 5.2.4 New Comment:
that option is currently only implemented in libxml2 when using xmlreader Previous Comments: ------------------------------------------------------------------------ [2007-09-10 11:38:51] nbijnens at servs dot eu Description: ------------ The LIBXML_XINCLUDE paramter given to the SimpleXML::__construct() is being ignored. Xinclude does work with DOMDocument. Using php-5.2.3 Reproduce code: --------------- <?php $xml = ' <test> <xi:include href="xmltobeincluded.xml" xmlns:xi="http://www.w3.org/2001/XInclude" /> </test> '; $x = new SimpleXMLElement($xml, LIBXML_XINCLUDE); echo $x->asXML(); ?> Expected result: ---------------- <test> <xtest> value </xtest> </test> Actual result: -------------- <?xml version="1.0"?> <test> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xmltobeincluded.xml"/> </test> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42609&edit=1