Hello, I'm having a problem creating a svgdocument from a svgz file. My coding is as follows:
InputStream is = HTTPServerDA.getWebdavSystemFile(url); BufferedInputStream bis = new BufferedInputStream(is); String parser = XMLResourceDescriptor.getXMLParserClassName(); SAXSVGDocumentFactory factory = new SAXSVGDocumentFactory(parser); SVGDocument doc = factory.createSVGDocument(null, bis); This works fine for svg but when svgz is used it throws a IOException: java.io.IOException: Content is not allowed in prolog. at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown Source) at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown Source) at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown Source) at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createSVGDocument(Unknown Source) I'm not sure what the cause of the problem is(something to do with some xml headings in svgz file?) and how to address it. Any help is much appreciated. Thanks. vyang -- View this message in context: http://www.nabble.com/create-svgdocument-from-svgz-tf3902131.html#a11062407 Sent from the Batik - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]