Code example for ParserConfigurationException

        if (NAMESPACES.equals(name)) {
            return isNamespaceAware();
        } else if (VALIDATION.equals(name)) {
            return isValidating();
        } else { 
            throw new ParserConfigurationException(name);
    public DocumentBuilder newDocumentBuilder()
            throws ParserConfigurationException { 
        if (isValidating()) {
            throw new ParserConfigurationException(
                    "No validating DocumentBuilder implementation available"); 
         * TODO If Android is going to support a different DocumentBuilder 
         * implementations, this should be wired here. If we wanted to 
Connect your IDE to all the code out there  Get Codota for Java