Re: xml xinclude

From: Date: Wed, 08 Jan 2003 14:44:34 +0000
Subject: Re: xml xinclude
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-93262@lists.php.net to get a copy of this message
At 15:35 08.01.2003, Pawel wrote:
Hello, libxml (tested with 2.4.30) creates these additional nodes when parsing documents with xincludes: XML_XINCLUDE_START and XML_XINCLUDE_END. PHP has no support for these nodes and chokes when it encounters them, therefore walking the xml tree after issuing $doc->xinclude() fails. The only work-around I could come up with is: $doc = domxml_open_mem($doc->dump_mem()) which gets rid of the XML_XINCLUDE_START and XML_XINCLUDE_END nodes The problem comes up when you have entities in the xincluded document, which don't get substituted. This short patch substitutes any entity references you might have in the xincluded document.
Why not check for XML_XINCLUDE_START and XML_XINCLUDE_END or the libxml version in configure and make the necessary changes to the .c file? marcus

« previous php.dev (#93262) next »