Skip to content

Commit

Permalink
As Batik 1.9 is used for tests now, the workaround for standalone XML…
Browse files Browse the repository at this point in the history
… in SVGDocument can be removed (resolves #35).
  • Loading branch information
eseifert committed Aug 12, 2017
1 parent 9a26b9d commit ec19191
Showing 1 changed file with 1 addition and 6 deletions.
Expand Up @@ -147,12 +147,7 @@ public SVGDocument(CommandSequence commands, PageSize pageSize) {
DOMImplementation domImpl = docBuilder.getDOMImplementation();
DocumentType docType = domImpl.createDocumentType(SVG_DOCTYPE_QNAME, SVG_DOCTYPE_PUBLIC_ID, SVG_DOCTYPE_SYSTEM_ID);
doc = domImpl.createDocument(SVG_NAMESPACE_URI, "svg", docType);
// FIXME: Some XML parsers don't support setting standalone to "false"
try {
doc.setXmlStandalone(false);
} catch (AbstractMethodError e) {
System.err.println("Your XML parser does not support standalone XML documents.");
}
doc.setXmlStandalone(false);

root = doc.getDocumentElement();
initRoot();
Expand Down

0 comments on commit ec19191

Please sign in to comment.