[xquery-talk] How can I search specific value through XQuery
David Carlisle
davidc at nag.co.uk
Tue Mar 29 13:03:05 PST 2011
> for $x in $docs2/result where $x[@href = 'abc'] return $x
or simpler, (as Ken knows, but he was keeping closer to your original:-)
$docs2/result[@href = 'abc']
There's no need for a for/where expression if you are simply filtering a
sequence.
David
________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
________________________________________________________________________
More information about the talk
mailing list