XML Operations
Introduction
The WeHub Dashboard offers a variety of plugins to enhance and automate your workflows. These plugins are categorized into three types: Triggers, Processors, and Apps. This documentation provides an overview of the "XML Operation" plugin, which falls under the Processors category.
XML Operation Plugin
The "XML Operation" plugin is used to handle XML data within your workflow. This plugin provides two actions: Produce and Parse. Each action has the same configuration requirements.
Actions
1. Produce
Produce XML from the given input.
2. Parse
Parse XML and extract its details in the output.
Configuration
When configuring either of the XML actions, you need to provide the following inputs:
- Label: A descriptive label to identify this action within your workflow.
- Indent: Input the indent level for formatting the XML.
- Schema: Select the schema.
- Truncate Fields (optional): Toggle button to truncate fields.
If the "Truncate Fields" toggle button is turned on, provide the following configuration:
- Truncate Level: Input the truncate level.
Configuration Steps
- Label: Provide a meaningful label for this action. For example, "Produce XML Data".
- Indent: Input the indent level for formatting the XML.
- Schema: Select the schema.
- Truncate Fields (optional):
- Truncate Level: Input the truncate level.
Example Configuration
Configuration Fields:
- Label: Produce XML Data
- Indent: 2
- Schema: XMLSchema
- Truncate Fields:
- Truncate Level: 100
Example Usage
Let's consider a scenario where you want to configure the Produce action to generate XML with a specific indent level and schema, and optionally truncate fields.
Configuration Input:
- Label: Produce XML Data
- Indent: 2
- Schema: XMLSchema
- Truncate Fields:
- Truncate Level: 100
Conclusion
The XML Operation plugin in the WeHub Dashboard is a versatile tool for managing XML data within your workflows. By configuring the label, indent level, schema, and truncate fields options, you can efficiently handle XML production and parsing in various scenarios. Ensure to test and validate your configurations to achieve the desired workflow behavior.
If you have any further questions or need additional assistance, please refer to the WeHub Dashboard support documentation or contact our support team.