Scalar. Converts a given value to XML.
to_xml ( value )
value | A string, or an XML type object. |
Converts a given value to XML. The function takes a string as its argument, and the function returns a string. The function can also take an XML type object as its argument, but it will return the same object. The function is the same as xmlparse(), but it can also handle an XML input.
xmlserialize ( to_xml ('<t/>') ) returns '<t/>'. The string gets converted to XML, then back into a string.