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

From: Date: Sun, 22 Feb 2004 13:22:37 +0000
Subject: Re: Re: PHP5: ext/dom - set namespace of node manually
References: 1 2 3 4 5 6 7 8  Groups: php.general php.xml.dev 
Request: Send a blank email to php-general+get-178490@lists.php.net to get a copy of this message
From: Vivian Steller > i now can use the following syntax to set the namespaceUri of a node: > > <?php > $element = new DomElement("tagname", "value", "http://namespaceUri"); > // or > $element = new DomElement("pref:tagname", "value", "http://namespaceUri"); > // works as well > ?> Your point for adding this was well made (as well as others expressing the same view), so support has been added to the DomElement constructor. as well as the examples above, to create a node with no value in a namespace: $element = new DomElement("pref:tagname", NULL, "http://namespaceUri"); Note: There will be no further additional dom features added for 5.0. This was an exception due to its usefulness in functionality. Rob

« previous php.general (#178490) next »