< prev index next >

test/javax/xml/jaxp/unittest/validation/Bug6954738_Test.java

Print this page




  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 }

< prev index next >