XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 Getting Started with XQuery
Subject: Iterating Through Files
Date: 2005-03-27 08:25:57
From: Bob DuCharme
Response to: Iterating Through Files

You could try it, but if it works with one XQuery implementation it won't necessarily work with another. From http://www.w3.org/TR/xpath-functions/#func-collection:


"This function provides a facility for users to work with a collection of documents which may be contained in a directory or rows of a Relational table or other implementation-specific construct. An implementation may also use external variables to identify external resources, but fn:collection() provides functionality not provided by external variables."


So the implementation has some leeway.


Because I love the name func-collection so much, I will also add the URL http://www.amazon.com/exec/obidos/tg/detail/-/B000007RQ9/103-8915257-7975822


No Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message


Titles Only Titles Only Newest First
  • Iterating Through Files
    2005-11-09 21:23:18 scam [Reply]

    But even if that does work, is there any guarantee that the query would be starting afresh for each new file? Becoz i need to do that. I need the query to execute through each xml file in a directory (even under subdirectories of this directory). but it should consider each file as a new beginning. any help on this would be most welcome. please? Thanks a million anyways. :)

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938