summaryrefslogtreecommitdiffstats
path: root/src/Main.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main.java')
-rw-r--r--src/Main.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Main.java b/src/Main.java
index 99d98c5..e1eb1aa 100644
--- a/src/Main.java
+++ b/src/Main.java
@@ -4,12 +4,17 @@ import org.dom4j.Element;
import org.dom4j.io.SAXReader;
import java.io.File;
+import org.xml.sax.SAXException;
public class Main {
public static void main(String[] argv) {
File xmlReport = new File(argv[0]);
SAXReader saxReader = new SAXReader();
- System.err.println("Attached TolerantXMLErrorHandler: " + TolerantXMLErrorHandler.attach(saxReader));
+ try {
+ XMLTolerantErrorHandler.attach(saxReader, true);
+ } catch (SAXException ex) {
+ ex.printStackTrace();
+ }
Document result;
try {
result = saxReader.read(xmlReport);