XMLFOREST ( [ XML_namespace_declaration , ] [ forest_element_spec [,...] ] [ OPTION { { NULL | EMPTY | ABSENT | NIL } ON NULL | NIL ON NO CONTENT } ] [ RETURNING { CONTENT | SEQUENCE } ] )
You can include only one default namespace declaration item. It can appear in any position in the list of comma-separated namespace declarations or at the end of the list.
Syntax Elements
- XML_namespace_declaration
XMLNAMESPACES ( { 'XML_namespace_URI' AS XML_namespace_prefix | DEFAULT 'XML_namespace_URI' | NO DEFAULT } [,...] )
- forest_element_spec
forest_element_value [ AS forest_element_name ]
- OPTION
- NULL ON NULL
- EMPTY ON NULL
- ABSENT ON NULL
- NIL ON NULL
- NIL ON NO CONTENT
- XML content options.
- RETURNING CONTENT
- The return value is an XQuery document node with the forest elements as its children.
- RETURNING SEQUENCE
- The return value is a sequence with the forest elements as items. This is the default.
- 'XML_namespace_URI'
- The URI (Uniform Resource Identifier) that identifies the XML namespace.
- XML_namespace_prefix
- The namespace prefix.
- forest_element_value
- A value for the forest element.
- forest_element_name
- A name for the forest element.