Class to validate XML.