Re: [PHP] PHP5: ext/dom - set namespace of node manually
[email protected] (Adam Bregenzer) Sun, 15 Feb 2004 19:24:20 -0500
| Newsgroups | php.general,php.xml.dev |
|---|---|
| Message-ID | <1076891060.7818.426.camel@arcon> |
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
[email protected]
http://adam.bregenzer.net/