Re: PHP5: ext/dom - set namespace of node manually

From: Date: Mon, 16 Feb 2004 00:24:20 +0000
Subject: Re: PHP5: ext/dom - set namespace of node manually
References: 1  Groups: php.general php.xml.dev 
Request: Send a blank email to php-general+get-177757@lists.php.net to get a copy of this message
On Sun, 2004-02-15 at 19:04, Vivian Steller wrote: > As you can see it is impossible to set the namespace manually! I tried to > set it with the help of a DomNamespaceNode-object but those objects are no > "real" nodes (why!?!) and the consequence is that you couldn't append such > a node with $node->appendChild($domnamspacenode_object); ... I am not sure if PHP 5 has many changes from PHP 4, however have you tried calling set_namespace[1]? $node->set_namespace('http://www.somedomain.de/'); [1] http://www.php.net/domnode-set-namespace -- Adam Bregenzer adam@bregenzer.net http://adam.bregenzer.net/

« previous php.general (#177757) next »