XML¶
String to XML¶
Pretty Print¶
When outputting XML data (e.g., when using the File Writer), it is possible to pretty print the XML data.
To enable pretty printing, the following steps are necessary:
Ensure the root model node is selected in the Information Model.
Select the Pretty Print checkbox.
Enter a value for Width. The width parameter defines the desired maximum width of the output string in characters.
Enter a value for Step. The step parameter controls the indentation step, specifying the number of spaces used for each level of indentation in the output.
(Optional) Select Minimize Empty. When selected, the pretty printer will use the full opening and closing tag format (<element></element>) for empty elements.
XML to Model¶
The naming of XML elements can be changed if necessary, for example, if the name is not permissible as a variable node name. This applies to both incoming XML data (e.g., when using the File Reader) and outgoing XML data (e.g., when using the File Writer).
To change the name of an XML element, the following steps are necessary:
Ensure the variable is selected in the Information Model (Parent Nodes have to be enabled as well).
Select the checkbox Variable Configuration
Enter a new name in the Label field