Escape generated text
Validate generated XML when testing