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



On Fri, Apr 14, 2006 at 11:25:30AM +0200, nico wrote:
i make a loop while node is not null
while(node)
   {
     /*......*/
       node = node->next;
   }

with some strcmp, find and use the desired data.

is it a good way?

  yes that's how to iterate over a node children list.

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]