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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to