Code example for ParserConfigurationException

0
        } 
 
        try { 
            return new SAXParserImpl(features);
        } catch (Exception ex) {
            throw new ParserConfigurationException(ex.toString());
        } 
    } 
 
    @Override 
    public void setFeature(String name, boolean value) throws SAXNotRecognizedException {
        if (name == null) {
            throw new NullPointerException();
        } 
 
        if (!name.startsWith("http://xml.org/sax/features/")) {
            throw new SAXNotRecognizedException(name);
        } 
 
        if (value) {
            features.put(name, Boolean.TRUE);