Title: Querying a document with attribute.
Hi Tun Lin,
 
I have the same problem running a query from the commandline. I run Xindice 1.0 with Jetty on a winXP machine. When I run the same query inside a XMLdbGUI window, it works fine. So it could have something to do with either the command-line tool (xindice.bat) or with running queries from the command line, since that might mess up the quotes and so on. I tried using single quotes, no quotes, escapted quotes and so on, but that didn't help much. Queries like /parts/[EMAIL PROTECTED] do work, giving all the parts with the attribute sku.
 
Did you try running the query from a Java program? If you're not into Java, maybe you can try using the XMLdbGUI program for now, see if that helps a little. BTW, I'm not a XMLdbGUI sponsor ;-) .
 
Good luck, hope it helped,
 
Jelle
 
----- Original Message -----
From: Tun Lin
Sent: Sunday, May 16, 2004 10:23 AM
Subject: Querying a document with attribute.

Hi users,

I am trying to query a xml document with attribute with the following query statement:

xindice xpath -c /db/partsdb -q /parts/[EMAIL PROTECTED]"101"]

However, no results are obtained.

If I use the following statement,

xindice xpath -c /db/partsdb -q /parts/part/desc

There are some results.

Is this a bug in Xindice?

Hope to hear from anyone of you soon.

Thanks.

Reply via email to