<IncludeTableHeaders>
03 December 2018
A XML Specification configuration is used to customize how the default XML Serializer will format the generated XML.
The XML Specification can be inlined within the Payload definition, or put into a separate file in order to allow reuse.
The root element for the XML Specification is <XMLSpec>
.
There are a number of child elements available for the XMLSpec element that controls the XML format. The table below shows the available child elements along with its data type and a description.
Child Element | Kind | Default Value | Description | ||
---|---|---|---|---|---|
|
boolean |
true |
Defines if to include the table column information in the export. |
||
|
boolean |
true |
Defines if to include any table column grouping defined on the table. |
||
|
boolean |
true |
Defines if to include the table content. |
||
|
boolean |
true |
Include settings defined on the table columns or not. |
||
|
boolean |
false |
Defines if the structural information should be ignored. Only applies to expanded business object structures. |
||
|
boolean |
true |
Whether or not to include level information for structural data. |
||
|
boolean |
true |
Whether or not to include direction (from/to) information for structural data. |
||
|
boolean |
true |
Whether or not to include an id per column/header |
||
|
boolean |
true |
Whether or not to generate cell-index |
||
|
boolean |
true |
Whether or not to include reference between cell and column/header |
||
|
boolean |
true |
Whether or not to add the size (sz) attribute on Cell elements. |
||
|
boolean |
false |
Whether or not to omit the "value" element below the "cell". Note that a column may use select expression that returns multiple values. In such cases when a cell refers to multiple values, each is wrapped inside its own value element. This may however be omitted in case you only select simple values. |
||
|
boolean |
false |
Whether or not to omit the root-node from the structure. |
||
|
boolean |
false |
Whether or not to omit cells having empty values. |
||
|
boolean |
false |
Whether or not to omit the extra row attributes such as object-id, type, name, revision, state and relationship type. |
||
|
boolean |
false |
Whether or not to use the name of the column as column element instead of using "<cell>" as a generic placeholder. Note that if this is set to true, you must ensure that your table has set a name on each column. |
||
|
String |
data-groups |
If you have data-grouping, this element will be the container element for those. |
||
|
String |
objects |
Defines the name of the element holding the actual data from the objects and/or relationships. |
||
|
String |
headers |
Defines the name of the element holding the columns.
|
||
|
String |
header |
Defines the name of the column element. See also above regarding the
|
||
|
String |
row |
Defines the name of the row element. A row represents either a relationship or a businessobject OR both depending on what your data set returns. The row element may be a static string, or, you can use some predefined macros that during runtime will be substituted with value depending on the current row. These macros are:
|
||
|
String |
cell |
Defines the name of the cell element. See also above regarding the |
||
|
String |
value |
The name of the cell value element. For example if a column contains a select statement that resolves into multiple values, each value is put into separate elements.
|
||
|
boolean |
true |
Defines if to include table calculations or not. |
||
|
boolean |
true |
Defines if to include group headers or not.
|
The attribute "rootElement" on the <Payload> element can be used to specify the root element name in the generated payload. In addition; the attribute "omitRootElement" with value "true" is used to omit the root element. These are valid in case you only have one payload fraction If there are multiple ones, these settings has no impact. |