17.10 - Example: Using XMLPI to Create an XML Processing Instruction Node - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - XML Data Type

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1140-171K
Language
English (United States)

The following query returns a sequence with a processing instruction whose serialization is 
<? orderpi 'NextDayShipment'?>

SELECT XMLPI(NAME orderpi, 'NextDayShipment');

Query result:

XMLPI( NAME orderpi , 'NextDayShipment' RETURNING SEQUENCE )
------------------------------------------------------------
<?orderpi NextDayShipment?>