Code example for DefaultHandler

            throws ParserConfigurationException, SAXException, IOException {
        DocumentBuilder docBuilder = BUILDER_FACTORY.newDocumentBuilder();
        // Set an error handler to prevent parsers from printing error messages 
        // to standard output! 
        docBuilder.setErrorHandler(new DefaultHandler());
        return docBuilder.parse(stream);
     * Returns the value of the named attribute of the current element. 
     * @param parent 
     * @param localName attribute local name or 'nodeName' if no namespace is 
     * specified. 
     * @param  namespace or <code>null</code> 
     * @return attribute value, or <code>null</code> if not found 
    public static String getAttribute(Element parent, String localName, Namespace namespace) {