FNC_GetXMLBlob Function | C Library Functions | Teradata Vantage - FNC_GetXMLBlob - Teradata Vantage - Analytics Database

SQL External Routine Programming

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-03-30
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
qnu1472247494689
lifecycle
latest
Product Category
Teradata Vantageā„¢

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

Syntax

void
FNC_GetXMLBlob(XML_HANDLE     xmlHandle,
               LOB_LOCATOR  *xmlBlob)

Syntax Elements

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

Usage Notes

FNC_GetXMLBlob gets a LOB locator for the BLOB representation of the XML type. The BLOB is 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 get an error.