Implemented XML validation.