Re: [xml] Namespaces
- From: Kasimier Buchcik <K Buchcik 4commerce de>
- To: Jason Viers <lists beanalby net>
- Cc: ML-libxml2 <xml gnome org>
- Subject: Re: [xml] Namespaces
- Date: Mon, 20 Mar 2006 17:31:28 +0100
Hi,
On Mon, 2006-03-20 at 11:00 -0500, Jason Viers wrote:
[...]
When children are created, they automatically inherit their parents' ns,
so as long as you call xmlSetNs before any further children are added,
they'll use the prefix too. If you want a child node to NOT use the
prefix, just call xmlSetNs(child, NULL).
See the functions xmlNewChild() and xmlNewTextChild() in the tree
module.
Kasimier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]