When Batik creates a SVG file it starts with:
<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.0//EN'
'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'>
When that is in there the Xerces call SAXParserImpl.parse() takes about 20 seconds to complete. If I remove that line it completes in well under a second.
Is there some way to tell SAXParserImpl to not go read the url? (I can't find a way in Batik to not write the DOCTYPE).
I'm in Java.
thanks - dave