Code example for SAXNotRecognizedException

Methods: getMessage

0
                parser.setProperty(JAXP_SCHEMA_LANGUAGE, schemaLanguage);
                parser.setProperty(JAXP_SCHEMA_SOURCE, schemaLocation);
            } 
        } catch (SAXNotRecognizedException e){
            log.info(parser.getClass().getName() + ": " 
                                        + e.getMessage() + " not supported."); 
        } 
 
    } 
 
 
    /** 
     * Configure schema validation as recommended by the Xerces spec.  
     * Both DTD and Schema validation will be enabled simultaneously. 
     * @param factory SAXParserFactory to be configured 
     */ 
    private static void configureXerces(SAXParserFactory factory)
            throws ParserConfigurationException,  
                   SAXNotRecognizedException,  
                   SAXNotSupportedException {