|
>Home>Products>DataDirect XQuery>Features>Custom URI Resolvers
Print
Custom URI Resolvers
Does your program require that resources be located in custom repositories, convert some resource to XML on the fly, or do some other magic that is not built in to DataDirect XQuery?
No worries — with DataDirect XQuery custom URI resolvers lets you take advantage of data stored in any file system.
By default, DataDirect XQuery uses the Java URI resolver when locating documents using the doc() function, providing out-of-the-box support
for ftp:, http:, and file: schemes. You can also write your own URI resolver to support any XML source. But if your program requires that resources be located in custom repositories, converts some resource to XML on the fly,
or does some other magic that is not built in to DataDirect XQuery, you can write your own URI resolver, and queries will use that instead.
Your URI resolver must return an XML document using one of the following Java APIs: StreamSource, SAXSource, StAXSource (using an XMLStreamreader), or DOMSource.
|