xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tonny Kohar <to...@kiyut.com>
Subject Re: How to load an exisitng SVG on the Server side (Building DOM of an exisiting SVG)
Date Fri, 10 Feb 2006 01:46:05 GMT
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


Mime
View raw message