Re: [xml] Help



On Fri, Oct 15, 2004 at 11:51:15AM -0700, nitin singh wrote:
Hello, 
I am having difficulty in understanding how namespace
nodes are dealt in libxml.
At run time I get pointer to an element node say E. I
want to create a XPath nodeset such that it contains E
as well as its children(text nodes, elements etc.) and
namespace nodes(the namespace axis), attribute nodes
of E and its descendents.
Finaly i will canonicalize it.

  Use the existing c14n code available in libxml2

Please help, as when i was reading libxml, xpath.c, it
says that the treatment for namespace nodes is
different.

  Yes XPath notion of namespace node does *not* match libxml2
namespace implementation. In a nutshell the XPath engine duplicates
namespaces nodes when they are in a nodeset result.
  You should not have to mess with that level, and if you do
a simple mail won't be enough to replace reading the code,

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]