Berkeley DB XML Reference Guide:
Berkeley DB XML XQuery Extensions

PrevRefNext


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

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


Description: dbxml:metadata()

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].

Parameters

$qname
This argument is cast to an xs:QName, resolving its prefix if one exists, using the in scope namespace prefixes. The resulting URI and localname pair are used to look up the metadata.
$node
If specified, the node's document is used for the metadata lookup operation. If $node is not specified, the behavior is identical to calling the function with the context item, "(.)" as the argument.

PrevRefNext

Copyright (c) 1996,2007 Oracle. All rights reserved.