XML data type values that are documents or elements can be retrieved in text format. Sequences must be transformed to elements either in XQuery by using element constructors or in SQL by using the XMLTABLE function.
In text format, the value is the serialization of the document or element node encoded in UTF-8.