Code example for SAXNotRecognizedException

Methods: getMessage

0
        try { 
            xmlreader.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd",validate);
        } catch (SAXNotRecognizedException e){
            //e.printStackTrace(); 
            System.err.println("Cannot set load-external-dtd to " + validate); 
            System.err.println("got exception" + e.getMessage()); 
        } 
         
        return xmlreader;
	} 
	 
}