teradata_optional Attribute
teradata_optional_attributes Attribute

Teradata Vantage™ XML Data Type

brand
Software
Teradata Vantage
prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1140-162K

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.