Hallo all! I'm trying to view a SVG Document which I read from a socket connection in a JSVGCanvas. The DOM I generate is redable and I can print it out in a file and view it in an SVG viewer (also in Batik).
But this code: private JSVGCanvas viewport;ling ... viewport.setSVGDocument(svgDoc); with the DOM-Tree produce the following exeception! Exception occurred during event dispatching: java.lang.ClassCastException: org.apache.batik.dom.GenericElementNS at org.apache.batik.dom.svg.SVGOMDocument.getRootElement(Unknown Source) at org.apache.batik.swing.svg.JSVGComponent.computeRenderingTransform(Unknown Source) at org.apache.batik.swing.svg.JSVGComponent.updateRenderingTransform(Unknown Source) at org.apache.batik.swing.gvt.JGVTComponent$1.componentResized(Unknown Source) at java.awt.AWTEventMulticaster.componentResized(AWTEventMulticaster.java:100) ... Could any body help me. thanks, Morad. -- Dipl. Math. Morad Ahmad [EMAIL PROTECTED] Universitaet Gh. Kassel www.db.informatik.uni-kassel.de/~morad Heinrich-Plett-Str. 40 Tel.: ++49(561)804-4101 D-34109 Kassel, Germany Fax: ++49(561)804-4199 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]