66 public void fatalError(SAXParseException exception) throws SAXException {
67 exception.printStackTrace();
68 }
69
70 public void warning(SAXParseException exception) throws SAXException {
71 exception.printStackTrace();
72 }
73 });
74 validator.validate(new StreamSource(Bug6954738_Test.class.getResourceAsStream("Bug6954738.xml")));
75
76 } catch (SAXException e) {
77 System.out.println(e.getMessage());
78
79 } catch (IOException e) {
80 e.printStackTrace();
81 System.out.println(e.getMessage());
82 }
83 }
84
85 }
86
|
66 public void fatalError(SAXParseException exception) throws SAXException {
67 exception.printStackTrace();
68 }
69
70 public void warning(SAXParseException exception) throws SAXException {
71 exception.printStackTrace();
72 }
73 });
74 validator.validate(new StreamSource(Bug6954738_Test.class.getResourceAsStream("Bug6954738.xml")));
75
76 } catch (SAXException e) {
77 System.out.println(e.getMessage());
78
79 } catch (IOException e) {
80 e.printStackTrace();
81 System.out.println(e.getMessage());
82 }
83 }
84
85 }
|