OK I got it.  The release notes says,

On Windows, command line queries can have problems with the 
quote handling of the windows shell. In general you should
put double quotes around the entire query string and use 
single quotes in your XPath. 

But it's not totally correct.  I changed my query to:

xindice.bat xpath -c /db/test -q "//[EMAIL PROTECTED]'East']"

and it still doesn't work.  However, finally I found this working:

xindice.bat xpath -c /db/test -q "//[EMAIL PROTECTED]"East\"]"

-tom

> -----Original Message-----
> From: Tom Wang [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 07, 2003 11:23 AM
> To: [email protected]
> Cc: [EMAIL PROTECTED]
> Subject: XPath query problem
> 
> 
> Hello,
> 
> I'm a new user to Xindice and I just installed the software.  I 
> have an XML
> doc looks like:
> 
> <root>
>   <region name="East">
>     <city name="Boston">
>       <person>Roddick</person>
>       <points>200</points>
>       <dob>1.1.1980 10:10:10</dob>
>     </city>
>   </region>
> </root>
> 
> I'm testing xpath query as:
> 
> xindice.bat xpath -c /db/test -q //[EMAIL PROTECTED]
> 
> Above query runs fine and returns the <region> element.  But if I 
> change the
> query to following then it doesn't work:
> 
> xindice.bat xpath -c /db/test -q //[EMAIL PROTECTED]'East']
> 
> Can anyone tell me what the problem is?  Thanks for any advice!
> 
> -tom
> 
> 

Reply via email to