/** * <b>DOM</b>: Implements {@link * DOMImplementation#createDocument(String,String,DocumentType)}. */ public Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype) throws DOMException { SVGOMDocument result = new SVG12OMDocument(doctype, this); result.setIsSVG12(true); // BUG 32108: return empty document if qualifiedName is null. if (qualifiedName != null) result.appendChild(result.createElementNS(namespaceURI, qualifiedName)); return result; }
/** * <b>DOM</b>: Implements {@link * DOMImplementation#createDocument(String,String,DocumentType)}. */ public Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype) throws DOMException { SVGOMDocument result = new SVG12OMDocument(doctype, this); result.setIsSVG12(true); // BUG 32108: return empty document if qualifiedName is null. if (qualifiedName != null) result.appendChild(result.createElementNS(namespaceURI, qualifiedName)); return result; }
/** * <b>DOM</b>: Implements {@link * DOMImplementation#createDocument(String,String,DocumentType)}. */ public Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype) throws DOMException { SVGOMDocument result = new SVG12OMDocument(doctype, this); result.setIsSVG12(true); // BUG 32108: return empty document if qualifiedName is null. if (qualifiedName != null) result.appendChild(result.createElementNS(namespaceURI, qualifiedName)); return result; }