Hi,

On Thu, 2007-03-22 at 15:36 +0000, [EMAIL PROTECTED] wrote:
> Hi,
> 
> I have the XML string representation of an SVG file. I need to create an
> SVGDocument of this. From looking at the API, this only seems possible by
> using a URI with the  SAXSVGDocumentFactory class, what is the best way to
> do it with just the SVG String I have?

You could wrap you string into InputStream, so SAXSVGDocumentFactory
could load it. The batik SAXDocumentFactory accept InputStream eg:

StringReader reader = new StringReader(yourString);
SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parser);
doc = f.createSVGDocument(reader);

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to