Gå til hovedinnhold

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.

IDxml-validation
SourceBuilt-in
CategoryQuality
Cardinalitymonolingual
Tagsquality

Parameters

ParameterTypeDefaultDescription
checkSourcebooleantrueValider kildetekst for XML-velformerthet
checkTargetbooleanfalseValider måltekst for XML-velformethet
localestringMålspråk for validering
wrapRootbooleantruePakk tekst inn i et rotelement før validering

Configure it live

Configuration
Loading form…

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

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