cleaned up xml_validator