logo       

Re: Why my Xquery always return an empty set?: msg#00088

text.xml.exist

Subject: Re: Why my Xquery always return an empty set?

On Sunday 12 September 2004 14:46, lxiscas wrote:
> I tried to execute Xquery following the style that in basic Xquery
> samples, however, no matter I tried to execute the Xquery for my
> XML file, or Xquery samples in basic Xquery section from web page,
> both of them return an empty set, What is problem for my Xquery?
> Previously I execute the Xquery for another XML file, and it looked
> OK.
>
> Thanks.
>
> Sam
>
>
> for $StillRegion in /Mpeg7//StillRegion[Text&='tree']

This will select all the StillRegions whose Text children contain the
text 'tree'. However, I don't see any matching StillRegions in your
example document.
If you turn this into
for $StillRegion in /Mpeg7//StillRegion[Text&='Sea']

you should get one result with the supplied sample.
Also make sure that the context collection of your query actually
contains the documents you mean to search.

HTH

Sebastian


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise