Skip to main content
Skip table of contents

XML

The XML component includes well-formed XML data in the process. Character encoding is determined from the XML declaration and the MIME type from the file name extension.


Properties

Document

Path to the linked XML document in the repository

Label

Label of the symbol within the process diagram

Operation

Determines if the file is read or written

Possible values:

  • Read: read XML document into the process and pass data to the next process step (default)

  • Write: save XML document with the data from the previous process step

Type

Defines the type of the file

The file type has no effect on the process execution, it contains meta information of the component.

Note:

The Resource type can only be set if the file is located in the Resources folder.

For files in the TemporaryFiles folder, only the Buffer type can be set.

Possible values:

  • Resource: File as a fix component of the final process, which can be read with the Read operation, for example. 
    Possible use cases: The XML component can be used as static configuration file or in a static SQL statement.

  • Buffer (default): This setting is for test purposes and should not be used in a productive environment. A warning message is therefore displayed in the Problems view.


Creating and using XML document

XML documents can be created within an ESB project in the Resources folder (for resources) and in the TemporaryFiles folder (for buffer files). Two options are available for this purpose:

  • via the Project > Add XML Document menu
  • via the New > XML Document context menu


  1. Within the ESB project, right-click on the folder to access the context menu.
  2. In the context menu, click New > XML Document.
    A selection of available templates is displayed.
  3. Select a blank template or an existing template.

  4. In File Name, enter the file name.

  5. To create the XML document, click Finish.
    The XML document is created and opened in the XML Editor 2.
  6. Edit the XML document.
  7. Drag and drop the XML document from the Projects view into the process diagram.
    Example: Insert between function adapter and stop module.

  8. In the Properties view, in Operation, specify if the XML document should be read (Read) or written (Write).

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.