XML Validation tool
The XML Validation tool checks the source and, optionally, target text of each translatable block for XML well-formedness and records the result on the block's properties: a validity flag and, when invalid, an error message identifying whether the source or target failed and why. Empty text is treated as valid.
Source validation is on by default. To validate the target as well, enable the target check and supply a target locale. Because block text is often an XML fragment rather than a complete document, the tool can wrap the text in a root element before parsing so a fragment with multiple top-level nodes still validates.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
checkSource | boolean | true | Validate source text for XML well-formedness |
checkTarget | boolean | false | Validate target text for XML well-formedness |
locale | string | Target locale for validation | |
wrapRoot | boolean | true | Wrap text in a root element before validating |
Configure these parameters interactively and copy the flow-step YAML on the Tool Reference.
Examples
Validate source only
Confirm the source text of each block parses as XML.
checkSource: true
Validate target as well
Also validate the French translation, treating each block as a fragment.
checkTarget: true locale: fr-FR
Processing notes
Operates on translatable blocks; non-translatable structure passes through unchanged.
Limitations
Checks well-formedness only; it does not validate against a DTD or schema.
Empty source or target text is treated as valid.
← Back to the Tool Reference