Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Data Interfaces and Communication Interfaces →  ABAP and XML →  Transformations for XML →  ST - Simple Transformations →  ST - Serialization and Deserialization →  ST - Literal Template Content →  ST - Literal XML Elements and Attributes 

ST - tt:lax, Name Comparisons of Literal XML Elements

Other versions: 7.31 | 7.40 | 7.54


 ... tt:lax="on"|"off"|"deep-on"|"deep-off" ...


When deserializing literal XML elements, the optional attribute tt:lax can be used to control whether the name of an element is respected.

  • If tt:lax is specified with the value ″off″, the inbound XML stream must contain an element of the same name with all literal attributes attr of the same content.
  • If tt:lax is specified with the value ″on″, the element in the inbound XML stream can have any name, but the expected attributes must still match.
  • The values ″deep-on″ and "deep-off″ for tt:lax are used to set the setting ″on″ and ″off″ for all subelements of the current element; however, they can be overwritten locally there.

If tt:lax is not specified, the setting complies with the surrounding context. By default, a template has the setting "deep-off".


We have the following XML fragment:

<X my_attr="attr">abc</X>

Due to tt:lax="on", the ST program below can still deserialize this fragment despite the element names being different:

<tt:root name="ROOT"/>
     <Y tt:lax="on">
       <tt:value ref="ROOT" />