PHP5 Bug with DOMDocument->xinclude

From: Date: Wed, 21 Jul 2004 10:32:54 +0000
Subject: PHP5 Bug with DOMDocument->xinclude
Groups: php.general 
Request: Send a blank email to php-general+get-191294@lists.php.net to get a copy of this message
Hi, Can anyone tell me if they faced a similar problem. When I manually save the following line into an file, it works <xi:include href="xml_file.xml" parse="xml"/> But if I remove this line, and add it dynamically using the following code, and only after that call $xml_file->xinclude(); it does not work $new_node = $xml_file->createElement('xi:include'); $new_node->setAttribute ('href', "xml_file.xml"); $new_node->setAttribute ('parse', 'xml'); $parent->appendChild($new_node); ($parent was set, so the error is not there) After all the xinclude command, I write the o/p using saveXML() and I see the <xi:include href="xml_file.xml" parse="xml"/> in the file unprocessed. Any ideas? Any work arounds for now? - Sid

« previous php.general (#191294) next »