[TASK] Remove tidy requirement and add XML validation

Simplifies the formatting of generated XML for label translations and validates generated XML before saving.