XML tools by Workato - Generate XML document from a sample XML action

The Generate XML document from a sample XML action generates an XML document based on the structure inferred from a sample XML payload. This action reads the provided sample, builds a dynamic input schema from its elements and attributes, and returns an XML document that matches that structure.

You can use this action when an XSD isn't available, or when your XSD contains anyType or wildcard elements that can't map directly.

IMPROVED XML CAPABILITIES

XML tools by Workato replaces the XML parser by Workato connector and includes an enhanced feature set.

Input

Input fieldDescription
Sample XML documentProvide a representative XML document. The action uses this file to infer the structure of the generated XML document.
XSD documentOptional. Upload an XSD file, or provide it as a string, to validate the generated XML document against. The action merges the input schema built from the sample XML with the structure defined in the XSD.

Additional input fields are generated based on the structure of the sample XML you provide. Elements that repeat in the sample are treated as lists.

Output

Output fieldDescription
Generated XMLThe generated XML document, structured according to the provided sample.

Limits

This action supports sample XML files with up to the following limits:

  • Maximum number of fields: 5000 fields
  • Maximum combined file size: 10MB (sample XML and XSD combined)

This action doesn't generate a form if the sample XML exceeds 5,000 fields. You must simplify the sample by reducing the number of fields, or split it into smaller samples before you use this action.

Last updated: