Re: [xml] How to add a Namespace?

xmlNewNs adds a namespace declaration to the node when xmlSetNs assigns
the namespace to the node (hint: you can have *multiple* namespace declarations
in each node).

For example,
1)  xmlNewNs()
    <a xmlns:test=""; />
2)   xmlNewNs() + xmlSecNs()
   <test:a xmlns:test=""; />


Roelant Ossewaarde wrote:

So my question is: what is it I don't understand? Why is there such a difference in behaviour? What is 
xmlSetNs doing that xmlNewNs doesn't do?

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]