|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] Query Through Multiple FilesLiam Quin liam at w3.orgSat Jan 19 21:13:10 PST 2008
On Sat, Jan 19, 2008 at 08:24:29PM -0500, Wei, Alice J. wrote:
> for $read in doc("*.xml")//div, but the error I got is
You probably need to use an XQuery collection; however, the
way this works varied between products, so it would depend on
which XQuery implementation you were using.
It is possible to query multiple files portably if you know
their names -- e.g.
for $boy in (
doc("john.xml"),
doc("ringo.xml"),
doc("george.xml"),
doc("paul.xml))
return $boy//hair/colour
Liam
--
Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/
|
Purchase Stylus Studio Online Today!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






