getXmlErrors does not seem to be used anymore. so can be deleted