XMLSERIALIZE

Syntax

Description of the illustration xmlserialize.gif

Description of the illustration xmlserialize.eps

Purpose

XMLSerialize creates a string or LOB containing the contents of value_expr.

Any lob returned by XMLSERIALIZE will be read-only.

See Also:

Examples

The following statement uses the DUAL table to illustrate the syntax of XMLSerialize:

SELECT XMLSERIALIZE(CONTENT XMLTYPE('<Owner>Grandco</Owner>')) AS xmlserialize_doc
   FROM DUAL;

XMLSERIALIZE_DOC
----------------
<Owner>Grandco</Owner>