SVGCanvasProvider extends AbstractXMLGeneratingCanvasProvider { public DocumentFragment getDOMFragment() { final DocumentFragment frag = doc.createDocumentFragment(); frag.appendChild(doc.importNode(doc.getFirstChild(), true)); return frag; } SVGCanvasProvider(DOMImplementation domImpl, boolean useNamespace, String namespacePrefix,
            Orientation orientation);  SVGCanvasProvider(DOMImplementation domImpl, boolean useNamespace,
            Orientation orientation);  SVGCanvasProvider(DOMImplementation domImpl, String namespacePrefix,
            Orientation orientation);  SVGCanvasProvider(boolean useNamespace, Orientation orientation); @Deprecated  SVGCanvasProvider(boolean useNamespace, int orientation);  SVGCanvasProvider(String namespacePrefix, Orientation orientation);  SVGCanvasProvider(Orientation orientation); Document getDOM(); DocumentFragment getDOMFragment(); @Override void establishDimensions(BarcodeDimension dim); @Override void deviceFillRect(double x, double y, double w, double h); @Override void deviceText(String text, double x1, double x2, double y1,
            String fontName, double fontSize, TextAlignment textAlign); boolean isNamespaceEnabled(); String getNamespacePrefix(); static final String SVG_NAMESPACE; }
@Test public void testGetDOMFragment() throws Exception { System.out.println("getDOMFragment - default"); SVGCanvasProvider instance = new SVGCanvasProvider(Orientation.ZERO); instance.establishDimensions(new BarcodeDimension(110, 110)); instance.deviceFillRect(0, 0, 100, 100); String expResult = "<test><svg xmlns=\"http: DocumentFragment result = instance.getDOMFragment(); assertEquals(expResult, getStringFromDoc(fromFragment(result))); }