Re: [xml] One question about XPath

On Wed, Oct 15, 2003 at 08:18:37PM +0200, MANU_TA wrote:





- My question is: Can I use XPath in order to obtain the <sublabel_2> 
value (responseX) from <sublabel_1> value (valueX)?. 
- Could you tell me what XPath "expresion" I have to use, please?

This means, with the "valueX" I would like to obtain "responseX" using 
XPath (is it possible?)

  picking the first one because teh node set may return multiple nodes:

   string((/main/label_1[sublabel_1 = 'valueX']/sublabel_2)[1])

  What about reading a book or an on-line resource like


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]