Excellent, this actually works !
Thanks a million.

----- Original Message ----- 
From: "Upayavira" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, January 23, 2004 3:49 PM
Subject: Re: XPath query with a contains() function


> Boris Rousseau wrote:
>
> >Thanks guys.
> >
> >In fact, once embedded into my code there is no problem with the command
> >interpreter.
> >
> >However, I still have one issue:
> >I want to retrieve all the documents from the collection where the userID
is
> >Jack and the date is 2004-01-23
> >Would the following query be correct?
> >//doc([contains(userID,"Jack")] and [contains(date,"2004-01-23")])
> >
> >
>
> //doc[contains(userID,"Jack") and contains(date,"2004-01-23")]
>
> or if you can (because the previous will have to scan your whole
document):
>
>
> /doc[contains(userID,"Jack") and contains(date,"2004-01-23")]
>
> Upayavira
>
>
>

Reply via email to