You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Miguel Angel Urrutia Soler <ur...@hotmail.com> on 2002/01/19 08:19:08 UTC

XPath command line tool tip and position problem

Hi All!

I found the problem, in order to execute xpath queries from w2k using the command line tool the query argument must be enclosed between " double quotation marks and the seeking attribute value between single quotation marks as follows:

C:\xindice>xindice xpath -c /db/com/ESH_Systems/ContingenSys/users -q "/User[@Login='Usuario1']"

however a xpath query seeking for a element in a specific position as /User[1] or  /User[last()] returns all the User elements in the collection neither first or last, another position query different from 1 or last() does not returns any result (/User[2]).

Also anybody knows if the use of relational operator "and" or "or" in attributes expressions are supported? By example: "/User[@ID='1' and @Login='Usuario1']" returns me : "and was unexpected at this time" message error


Thanks.

Miguel Angel Urrutia Soler