Re: [xml] Is there an API for obtaining xmlNodeSetPtr for all the nodes within a xml sub-tree ?



On Fri, Apr 14, 2006 at 12:07:42PM +0530, Chetan Raj wrote:
Hi All,

I am new to Libxml. I am trying to find an API in Libxml that can give me
xmlNodeSetPtr  for all the children nodes of a xml subtree.

  A node set can be one of the results of an XPath query. So you would
have to make an XPath query corresponding to the childrens. But that sounds
wrong to me, if you want to walk the children of a node it's part of the 
tree structure so why spend time to create artificially an extra structure
for this !

Daniel

-- 
Daniel Veillard      | Red Hat 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]