This would do it. try { File f = new File(stringFileName); svgCanvas.loadSVGDocument(f.toURL().toString()); } catch (IOException ex) { ex.printStackTrace(); }
-----Original Message----- From: Joseph Foster [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 4:23 PM To: [EMAIL PROTECTED] Subject: Loading a SVG Document from a String Greetings, I was wondering if it is possible to have the JSVGCanvas load a SVGDocument from a String. I can see that a URL is generally specified, but this doesn't really help me since I am getting raw SVG from the database in text form. Is this not the right tack to take? Is there another way to create a SVGDocument that I am not realizing and just passing it a raw String to construct the document? Thanks, Joe Foster --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]