DFDL support to exclude elements that are not required (PJ45844)
BKadlecik 270007SFKX Visits (1259)
DFDL support to exclude elements that are not required provides a way to reduce network bandwidth by easily reducing the size of the JSON and XML documents that are built and transmitted. The z/TPF DFDL parser creates JSON and XML documents that include all elements that are not hidden. Many of these fields can be 0, NULL, or false and provide no value when these fields are not required and assumed to contain such a value when not present. Excluding not required fields can thus significantly reduce the size of the JSON or XML document. DFDL simple elements are considered to be not required if a default value is specified. Likewise, DFDL complex elements are considered to be not required if all underlying simple elements are not required. DFDL array elements can contain occurrences that are not required if all subsequent occurrences are also not required.
The tpf_dfdl_buildDoc function, the z/TPF service descriptor, and the business event dispatch adapter were updated to include a way for you to indicate whether you want to exclude elements that are not required.