Matthew,

Thanks for the help.

By the way,

        xindice xpath_query -c /db/testing -q "/data/[EMAIL PROTECTED]'1']"

works, but

        xindice xpath_query -c /db/testing -q "/data/[EMAIL PROTECTED] = '1']"

will get an error message:

        = was unexpected at this time.

Any idea why the white space matters? Also, is there any plan for returning
attributes?

Again, appreciate your help.

Lixin

-----Original Message-----
From: Matthew Van Horn [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 05, 2002 7:02 PM
To: xindice-users@xml.apache.org
Subject: Re: XPath problem



On Friday, December 6, 2002, at 12:00 PM, Matthew Van Horn wrote:
>
> 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']"
>
>
and I forgot - the query should be: "/data/[EMAIL PROTECTED] = '1']"
                                                  ^denotes attribute

Reply via email to