You may try things like:

//name[ contains(text(), 'John Smith')  or contains(text(), 'Smi') ]

Lixin
-------------------------
XDataFinder, another way to browse XML database
http://www.brownpot.com/sw_profile.html



-----Original Message-----
From: Charles Guo [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 3:10 PM
To: xindice-users@xml.apache.org
Subject: text search


Hi All,

What command can be used for text-search on the text between a pair of
element tags?

For example:

I would like to retrieve

<name> John Smith </name>  by “John Smith” or “Smi”

from an xml document containing:

…
<name> John Smith </name>
<name> John Doe </name>
<name> Bill Herb</name>
<name> Dave Gold </name>
<name> Susan Chen </name>
<name> jimmy Sun </name>


Thanks,

Charles

Reply via email to