16.20 - Example: Using XMLPI to Create an XML Processing Instruction Node - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ XML Data Type

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Release Date
March 2019
Content Type
Programming Reference
Publication ID
B035-1140-162K
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?>