PhoenixmlDb.XQuery
IMetadataProvider
Provides document-level metadata resolution for the XQuery execution engine.
#IMetadataProvider
Namespace: PhoenixmlDb.XQuery
Provides document-level metadata resolution for the XQuery execution engine.
Metadata is key-value data associated with a document but stored outside the XML content itself — for example, creation timestamps, access control tags, or application-specific properties. The XQuery engine calls this provider when queries reference metadata functions.
Like INodeProvider, most developers do not need to implement this interface. The built-in PhoenixmlDb storage layer provides its own implementation. Implement it when you need to expose custom metadata from an external system to XQuery expressions.
#Methods
#GetAllMetadata(PhoenixmlDb.Core.DocumentId)
Resolves all metadata key-value pairs for a document.
Parameters:
-
documentId— The document to query.
Returns: All metadata key-value pairs. Returns an empty sequence if the document has no metadata.
#GetMetadata(PhoenixmlDb.Core.DocumentId,String)
Resolves a single metadata value by document ID and key.
Parameters:
-
documentId— The document to query. -
key— The metadata key (case-sensitive).
Returns: The raw byte value, or null if the key does not exist for this document.
#See also
-
QueryEngine