- From: Jon Cruz <jon@joncruz.org>
- Date: Fri, 5 Nov 2010 18:41:27 -0700
- To: Verónica Ramírez H <veronicaramirezh@gmail.com>
- Cc: www-svg@w3.org
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. http://www.w3.org/blog/systeam/2008/02/08/w3c_s_excessive_dtd_traffic 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