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

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
qwr1571437338192.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantage™

Purpose

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

Syntax

void
FNC_GetXMLBlob(XML_HANDLE     xmlHandle,
               LOB_LOCATOR  *xmlBlob)
XML_HANDLE xmlHandle
A handle to an XML type that is defined to be an input parameter to an external routine.
LOB_LOCATOR *xmlBlob
A LOB locator for the BLOB representation of the XML type.

Usage Notes

FNC_GetXMLBlob is used to get a LOB locator for the BLOB representation of the XML type. The BLOB will be in the UTF-8 encoding.

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

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

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