W3C home > Mailing lists > Public > www-svg@w3.org > June 2004

Problems opening a SVG file

From: Xavier Murillo <xavier.murillo@student.uni-ulm.de>
Date: Tue, 29 Jun 2004 12:57:15 +0200
Message-ID: <1088506635.40e14b0b5b315@imap.rz.uni-ulm.de>
To: www-svg@w3.org

Hi!

I'm trying to open a local SVG file to work with it but only works when i use a
URL.. how can i change?

my code:

------------------this works------------------------
String parser = XMLResourceDescriptor.getXMLParserClassName();
SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parser);
String uri = "http://mywebpage.de/file.svg";
docSVG = f.createDocument(uri);

---------------this not works-----------------------
String parser = XMLResourceDescriptor.getXMLParserClassName();
SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parser);
String uri = "C:\\file.svg";
docSVG = f.createDocument(uri);

-----------------------
-----------------------
Thank's



--
Xavier Murillo
Received on Tuesday, 29 June 2004 06:57:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 5 November 2012 23:52:56 GMT