That might because of the white space in your query. Windows has problem to
interpreter it correctly. Try the query without the space:
  "//RefTitle[contains(text(),'pAP3neo')]"

I remember this problem has been shown up in this list many times. You
should be able to find it in the archive.

http://marc.theaimsgroup.com/?l=xindice-users&w=2&r=1&s=was+unexpected+&q=b

Lixin


-----Original Message-----
From: Charles Guo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 11:03 AM
To: [email protected]; [EMAIL PROTECTED]
Subject: RE: text search


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: [email protected]
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: [email protected]
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