private void emitErrors(XMLOutput xmlOutput) throws IOException {
// System.err.println("Writing errors to XML output");
XMLAttributeList attributeList = new XMLAttributeList();
attributeList.addAttribute("errors", Integer.toString(errorList.size()));
attributeList.addAttribute("missingClasses", Integer.toString(missingClassSet.size()));
xmlOutput.openTag(ERRORS_ELEMENT_NAME, attributeList);
// Emit Error elements describing analysis errors
for (AnalysisError error : getErrors()) {
xmlOutput.openTag(ERROR_ELEMENT_NAME);