> Thanks John, > But the query is not returning any values.
Sankaran,
I don't want to be harsh, but please do read documentation and FAQs before posting. First of all this is the developer list and this kind of questions belong to the user one, where you might get more help (even then, however, they would belong more to an Xpath list, and you seem to ask people to do your homework, since your question are pretty basic and show little or no effort in understanding XPath). Plese have a look at
http://www.catb.org/~esr/faqs/smart-questions.html before posting.
This said, the only Xindice (better: XML:DB) related response is that in XML:DB the XPathQueryService must return a Nodeset, so there is no way for it to return you just an attribute value. You have to retrieve the Element containing the attribute and then get the attribute value (by means of SAX, DOM or your favorite API).
Ciao,
-- Gianugo Rabellino Pro-netics s.r.l. http://www.pro-netics.com