PhoenixmlDb.XQuery

IDocumentResolver

Resolves document URIs to XDM documents for fn:doc() and fn:collection(). Implementations can load from files, URLs, databases, or any other source.

#IDocumentResolver

Namespace: PhoenixmlDb.XQuery

Resolves document URIs to XDM documents for fn:doc() and fn:collection(). Implementations can load from files, URLs, databases, or any other source.

#Methods

#IsDocumentAvailable(String)

Checks whether a document is available at the given URI.

Parameters:

  • uri — The document URI.

Returns: True if the document exists and can be loaded.

#ResolveCollection(String)

Returns all documents in a named collection.

Parameters:

  • uri — The collection URI, or null for the default collection.

Returns: All document nodes in the collection.

#ResolveDocument(String)

Loads a document by URI.

Parameters:

  • uri — The document URI (file path, URL, or logical name).

Returns: The document node, or null if the document cannot be resolved.