XMLDOCUMENT (
XML_value_expr
[ RETURNING { CONTENT | SEQUENCE } ]
)
Syntax Elements
- XML_value_expr
- An instance of the XML type. If XML_value_expr is not of XML type, it is implicitly cast to XML type. If the cast is not supported, an error is raised. If XML_value expr is NULL, the result is NULL.
- RETURNING CONTENT
- The return value is a document node with one or more child element nodes.
- RETURNING SEQUENCE
- The return value is a sequence (an ordered collection of items, each of which can either be a valid Xquery node or atomic value). This is the default.