115 System.out.println("Error: " + e.getMessage());
116 errorFound = true;
117 }
118
119 public void fatalError(SAXParseException e) throws SAXException {
120 System.out.println("Fatal error: " + e.getMessage());
121 throw e;
122 }
123
124 public void warning(SAXParseException e) throws SAXException {
125 System.out.println("Warning: " + e.getMessage());
126 }
127 });
128
129 errorFound = false;
130 documentBuilder.parse(xmlFile);
131 return errorFound;
132 }
133
134 }
135
|
115 System.out.println("Error: " + e.getMessage());
116 errorFound = true;
117 }
118
119 public void fatalError(SAXParseException e) throws SAXException {
120 System.out.println("Fatal error: " + e.getMessage());
121 throw e;
122 }
123
124 public void warning(SAXParseException e) throws SAXException {
125 System.out.println("Warning: " + e.getMessage());
126 }
127 });
128
129 errorFound = false;
130 documentBuilder.parse(xmlFile);
131 return errorFound;
132 }
133
134 }
|