FNC_GetXMLClob Function | C Library Functions | Teradata Vantage - FNC_GetXMLClob - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
rin1593638965306.ditamap
dita:ditavalPath
rin1593638965306.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantageā„¢

Returns a LOB locator for the CLOB representation of the XML type.

Syntax

void
FNC_GetXMLClob(XML_HANDLE    xmlHandle,
               LOB_LOCATOR *xmlClob)

Syntax Elements

xmlHandle
A handle to an XML type that is defined to be an input parameter to an external routine.
xmlClob
The LOB locator for the CLOB representation of the XML type.

Usage Notes

FNC_GetXMLClob is used to get a LOB locator for the CLOB representation of the XML type. The CLOB will be in the UNICODE character set.

The XML handle xmlHandle is passed as input. The LOB locator value xmlClob is returned from the function. The user can then use LOB FNC routines to read from the xmlClob locator.

Note that the CLOB representation of the XML can contain XML data that is not well-formed.

FNC_GetXMLClob can only be used with LOB-based XML values, otherwise you will get an error.