On Friday, December 6, 2002, at 11:51 AM, Lixin Meng wrote:
I also did test as

        xindice xpath_query -c /db/testing -q /data/test2/forTest2

This time, there is no return. ???

If I try anything like

        xindice xpath_query -c /db/testing -q /data[position() = '1']
                or
        xindice xpath_query -c /db/testing -q /data/test2[forTest2 = '1']

I will get error message:

1. Xindice will NOT return attributes, only elements.
xindice xpath_query -c /db/testing -q /data/test2/forTest2 **will not work


2. use quotes around your query when using the command line, otherwise the shell tends to screw things up - especially with quote and parentheses characters. It's easier to use quotes than to escape everything that needs to be escaped.
xindice xpath_query -c /db/testing -q "/data/test2[forTest2 = '1']"





Reply via email to