Re: [xml] How to add a Namespace?
- From: Aleksey Sanin <aleksey aleksey com>
- To: Roelant Ossewaarde <miep boektrust nl>
- Cc: xml gnome org
- Subject: Re: [xml] How to add a Namespace?
- Date: Thu, 29 May 2003 09:32:49 -0700
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="http://www.example.com/test" />
2) xmlNewNs() + xmlSecNs()
<test:a xmlns:test="http://www.example.com/test" />
Aleksey
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]