W3C home > Mailing lists > Public > www-svg@w3.org > November 2010

Re: Reading SVG with java

From: Jon Cruz <jon@joncruz.org>
Date: Fri, 5 Nov 2010 18:41:27 -0700
Message-Id: <DA65B41B-A5E6-4B45-9CF5-E99F13846374@joncruz.org>
Cc: www-svg@w3.org
To: Verónica Ramírez H <veronicaramirezh@gmail.com>

On Nov 4, 2010, at 10:53 PM, Verónica Ramírez H wrote:

> Hello, 
> I'm doing a project where I must read an SVG file and get some data from it using java. I was having success in my reading until yesterday.
> A couple of weeks ago, the project was working fine, so I decided to do some other works. Yesterday, I wanted to work on that project and when I ran the project, it appears an Exception: 
> java.io.IOException: Server returned HTTP response code: 500 for URL: http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd
>     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
>     at com.sun.org.apache.xerces.internal.impl.XMLEntityMana

The problem is that your parser is grabbing the DTD over the Internet each time you read a file. This is not really a good configuration.


What you should do is set things up to have a local version of the DTD you use, or turn of DTD validation.
Received on Saturday, 6 November 2010 01:42:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:29 UTC