Fetch Module

This XQuery Module provides simple functions to fetch the content of resources identified by URIs. Resources can be stored locally or remotely and e.g. use the file:// or http:// scheme. If more control over HTTP requests is required, the HTTP Client Module can be used. With the HTML Module, retrieved HTML documents can be converted to XML.

=Conventions=

All functions and errors in this module are assigned to the  namespace, which is statically bound to the fetch prefix.

URI arguments can point be URLs or point to local files. Relative file paths will be resolved against the current working directory (for more details, have a look at the File Module).

=Functions=

fetch:content-type
=Errors=

=Changelog=


 * Version 9.0


 * Added: fetch:xml-binary
 * Updated: error codes updated; errors now use the module namespace


 * Version 8.5


 * Updated: fetch:text:  argument added.


 * Version 8.0


 * Added: fetch:xml

The module was introduced with Version 7.6.