Code example for DocumentBuilder

Methods: getDOMImplementation

0
 
        DocumentBuilder db = dbf.newDocumentBuilder();
 
        // Create an instance of org.w3c.dom.Document 
        String svgNamespaceURI = "http://www.w3.org/2000/svg";
        document = db.getDOMImplementation().createDocument(svgNamespaceURI, "svg", null);
 
        // Set up the context 
        return SVGGeneratorContext.createDefault(document);
    } 
 
    public MapProducerCapabilities getCapabilities(String format) {
        return CAPABILITIES;
    } 
 
}