Cool that worked :-) Thanks. BTW your presentation on your site was very useful.
- Sid On Wed, 21 Jul 2004 13:25:11 +0200, Christian Stocker <[EMAIL PROTECTED]> wrote: > > > On Wed, 21 Jul 2004 16:02:54 +0530, Siddharth Hegde <[EMAIL PROTECTED]> wrote: > > 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? > > No workaround, just use the correct methods for inserting elements > with a namespace ;) > > $new_node = $xml_file->createElementNS(XINCLUDE_NAMESPACE, 'include'); > > XINCLUDE_NAMESPACE is of course to be replaced with tha actual > xinclude namespace... (too lazy to look it..) > > chregu > > > > - Sid > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich > phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 > http://www.bitflux.ch | [EMAIL PROTECTED] | gnupg-keyid 0x5CE1DECB > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php