Thanks Lixin. I tried following 2 runs and failed to get it work. I was running on Windows.
C:\Xindice\xml-xindice-1.0>xindice xpath_query -c /db/testdir1/testdir1_3 -q "//RefTitle" ... <?xml version="1.0"?> <RefTitle xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/testdir1/testdir1_3" src:key="Example01m.bsm"> pAP3neo </RefTitle> <?xml version="1.0"?> <RefTitle xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/testdir1/testdir1_3" src:key="Example01m.bsm"> Direct Submission </RefTitle> <?xml version="1.0"?> ..... C:\Xindice\xml-xindice-1.0>xindice xpath_query -c /db/testdir1/testdir1_3 -q "//RefTitle[contains(text(), 'pAP3neo')]" 'pAP3neo')]""=="" was unexpected at this time. If you have further suggestions, please let me know. Thanks, Charles -----Original Message----- From: Lixin Meng [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 6:19 PM To: xindice-users@xml.apache.org Subject: RE: text search 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