Utility for transforming and validating XML documents