teradata_optional Attribute
teradata_optional_attributes Attribute - Advanced SQL Engine - Teradata Database

XML Data Type

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

You can specify the following in the stylesheet:

  • The elements that are optional and will not be serialized if the corresponding value is a NULL
  • The elements that are required. An empty element, <el/>, or attribute with a null string value, at="", is created if the corresponding value is NULL.

Use the teradata_optional attribute to specify whether an element is generated as an empty element with an empty string value, or whether the element is skipped if the corresponding value in the SQL result set is NULL.

Use the teradata_optional_attributes attribute to specify which attribute(s) of the element is skipped if the corresponding value(s) in the SQL result set is NULL.