XML
XML Processor – Parse & Produce XML
Summary (SEO Meta Description):
The XML Processor in WeHub parses XML into structured objects or produces XML from workflow data.
Configure indentation, truncation, and schemas for reliable XML transformations.
Overview
The XML Processor provides two actions for handling XML data:
- Parse → Converts XML strings into structured workflow objects.
- Produce → Generates XML strings from workflow objects.
This processor is essential for working with legacy systems, document-based APIs, and healthcare interoperability formats like CCD or HL7 XML.
⚙️ Configuration Options
| Field | Type | Description | 
|---|---|---|
| Label | String | Custom name for the node (e.g., "Parse CCD Document"). | 
| Indent | Integer | Number of spaces for indentation in produced XML (default 0= compact). | 
| Truncate Fields | Boolean | Toggle to shorten large string fields when enabled. | 
| Schema | Schema | Optional schema for validating parsed or produced XML. | 
💡 Example Use Cases
- Parse XML → Ingest CCD/CCDA healthcare documents into JSON for FHIR conversion.
- Produce XML → Generate XML reports for legacy partner integrations.
- Ops → Convert structured workflow data into XML format for APIs requiring XML payloads.
FAQ
Q: Does it preserve XML attributes and namespaces?
A: Yes, attributes and namespaces are preserved during parse and produce.
Q: What happens if the XML is invalid?
A: The node fails with a parsing error unless handled by workflow error management.
Q: Can I pretty-print XML?
A: Yes, increase the Indent value for human-readable output.
Keywords: WeHub XML Processor, Parse XML, Produce XML, XML transformation, CCD, CCDA