Re: [xml] Adding a namespace to an existing tree?
- From: Daniel Veillard <veillard redhat com>
- To: Abraham Nelson <abe49_90210 yahoo com>
- Cc: xml gnome org
- Subject: Re: [xml] Adding a namespace to an existing tree?
- Date: Sun, 20 Mar 2005 11:06:00 -0500
On Fri, Mar 18, 2005 at 04:40:51PM -0800, Abraham Nelson wrote:
I wonder if it's at all possible to add a namespace to
the document element in an existing tree. I've tried:
xmlNewNs(xmlDocGetRootElement(xmlDoc),(xmlChar
*)"<namespame>",NULL);
and also with:
This adds a definition in the tree.
xmlReconciliateNs(xmlDoc,xmlDocGetRootElement(xmlDoc));
But it doesn't seem to get applied to the rest of the
nodes (children), which I need when I apply a style
sheet to it.
Do I have to do some "apply" method, or is what I want
not even possible?
node and attributes structure have an ns field indicating to which
manespace they pertain or NULL if they are not related to any namespace.
Daniel
--
Daniel Veillard | Red Hat Desktop team http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]