Re: [xml] Getting Node by Name

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Fri Oct 20 2000 - 12:54:02 EDT


On Fri, Oct 20, 2000 at 06:30:06PM +0100, Wendsomde Yameogo wrote:
>
> Hello People,
>
> How can I get a Node by Name? The whole tree should be searched.
> I donīt wanna write a function for it. Does the libxml API offers
> something interesting for the case?

  Use XPath or XPointer
    http://www.w3.org/TR/xpath
    http://www.w3.org/TR/xptr

Interfaces for libxml implementations:
http://xmlsoft.org/html/gnome-xml-xpath.html
http://xmlsoft.org/html/gnome-xml-xpointer.html

  the code of the testXPath program of libxml will help you get
something running quickly.

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | libxml Gnome XML toolkit
Tel : +33 476 615 257  | 655, avenue de l'Europe | http://xmlsoft.org/
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Rpmfind search site
 http://www.w3.org/People/all#veillard%40w3.org  | http://rpmfind.net/
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Oct 20 2000 - 13:43:36 EDT