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 
         * allow different implementations, these could be distinguished by