Details
-
Bug
-
Status: Resolved
-
Resolution: Incomplete
-
1.7
-
None
-
None
-
Operating System: Windows XP
Platform: PC
Description
If the document is set to one with a different implementation, an exception is thrown, for example:
Document d = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(FILENAME);
JSVGCanvas canvas = new JSVGCanvas();
canvas.setDocument(d);
Gives an exception:
Exception in thread "main" java.lang.ClassCastException: org.apache.batik.dom.GenericElement cannot be cast to org.w3c.dom.svg.SVGSVGElement
Example project attached.