Markos, The method you need to use is context.selectSingleNode - Dmitri
Markos Charatzas <[EMAIL PROTECTED]> wrote: Maybe it requires some clarification. When I say rich formattted text, I get all the values evaluated by the xpath expression, but without the tags. Just tab, return characters and values of tags. e.g. in an xml of foo 20 bar 25 foobar 20 I want to retrieve just all elements with age = 20 (xpath "persons/person[age=20]") Is it feasible using the jxpath API? Thanks in advance, Markos On Monday 13 June 2005 12:36, Markos Charatzas wrote: > Hi there, > > Is it possible to retrieve a subset of an XML document using the jxpath > api? The JXPathContext#getValue(String) method returns it in rich formatted > text. > > Thanks in advance, > Markos Charatzas > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
