dbxml:metadata()

dbxml:metadata($qname as xs:string, $node as node()) as xs:anyAtomicType?

The dbxml:metadata() extension functions return the named metadata items from the document to which the specified node belongs. If the specified metdata does not exist in the document specified by $node, the empty sequence is returned, otherwise the type of the item returned is the same as the type of the metadata set in the document. If the context item is not a node, an error is raised [err:FODC0001].