You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Tonny Kohar <to...@kiyut.com> on 2006/02/10 02:46:05 UTC
Re: How to load an exisitng SVG on the Server side (Building DOM
of an exisiting SVG)
Hi,
On Thu, 2006-02-09 at 16:26 +0530, Dwarakanath, Guruprasad wrote:
> I want to know how we load an existing SVG document on server side. I
> have an applet which creates SVG and stores it on to the server side
> (through a servlet). Then later, a server side program should load
> this saved SVG and then add some graphics to this file.
>
> Which class I need to use in order to build the DOM on the server
> side?
It is something like
String url = file.toURI().toString();
String parser =
XMLResourceDescriptor.getXMLParserClassName();
SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parser);
doc = f.createSVGDocument(url);
Regards
Tonny Kohar
--
Sketsa
SVG Graphics Editor
http://www.kiyut.com
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org