From: Vivian Steller
> i now can use the following syntax to set the namespaceUri of a node:
>
> $element = new DomElement("tagname", "value",
"http://namespaceUri";);
> // or
> $element = new DomElement("pref:tagname", "value",
"http://namespaceUri";);
> // works
Rob Richards wrote:
> From: Christian Stocker
>
>> > $node->setAttributeNS("http://www.w3.org/2000/xmlns/";, "xmlns:b",
>> > "http://www.somedomain.de/";);
>> >
>
>> IMHO, that would be very confusing.
>>
>> I liked the idea by vivian with a third optional namespaceURI argument
>> for the elemen
From: Christian Stocker
> > $node->setAttributeNS("http://www.w3.org/2000/xmlns/";, "xmlns:b",
> > "http://www.somedomain.de/";);
> >
> IMHO, that would be very confusing.
>
> I liked the idea by vivian with a third optional namespaceURI argument
> for the element object, so that at least you can
On 2/16/04 12:07 PM, Rob Richards wrote:
Porting the setNamespace function to PHP5 would be nice. Another solution
could be the possibility to append a namespace-node (is the
domnamespacenode class currently used by any functions?) or the
setAttribute checks wether some "xmlns"/"xmlns:" attribut
> Porting the setNamespace function to PHP5 would be nice. Another solution
> could be the possibility to append a namespace-node (is the
> domnamespacenode class currently used by any functions?) or the
> setAttribute checks wether some "xmlns"/"xmlns:" attribute is set and
> updates namespaceUri
Christian Stocker wrote:
> ...
> Vivian, it's not possible the set the namespace according to the W3C
> standard, except with createElementNS(). As Adam said, in PHP 4, there
> was the option set_namespace, which isn't ported to PHP5 (yet).
>
> Maybe we should port that function as well, to allow
On 2/16/04 1:24 AM, Adam Bregenzer wrote:
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
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 $nod
Hello,
the following code shows my problem:
appendChild($node);
$node->setAttribute("xmlns", "http://www.somedomain.de/";);
print("Namespace: '" . $node->namespaceURI . "'");
$xmlCode = $doc->saveXML();
print("" . htmlspecialchars($xmlCode) . "");
9 matches
Mail list logo