Code example for DocumentBuilder

Methods: getDOMImplementation, parse

0
        dbf.setNamespaceAware(true);
        DocumentBuilder db = null;
         
            db = dbf.newDocumentBuilder();
         
            DOMImplementation impl = db.getDOMImplementation();
             
  	     
            // parse the document 
            return db.parse(in);
 
        } catch (ParserConfigurationException e) {
        	System.out.println(">>>>>>>>>>>>>>>>>>>>>ParserConfigurationException>>>>>>>>>");
        } 
 
 
        return null; 
    } 
 
    /** 
     *  modifies the attachments of a document using the input prefix (old prefix is "file:")