#42609 [Opn->Bgs]: LIBXML_XINCLUDE not working

From: Date: Mon, 10 Sep 2007 12:08:18 +0000
Subject: #42609 [Opn->Bgs]: LIBXML_XINCLUDE not working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-117358@lists.php.net to get a copy of this message
ID: 42609 Updated by: rrichards@php.net 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

« previous php.bugs (#117358) next »