Weiming Zhang wrote:[...]
There are two ways to specify the SAX2 parser Batik should use. The first, which I think most people use is to provide the resource file:org/apache/batik/util/resources/XMLResourceDescriptor.properties which should have the following two properties:
There are actually three ways, you can also provide an batik.swing.svg.SVGUserAgent (there are adapters) which has a method:
getXMLParserClassName().
Just curius, but why doesn't Batik use JAXP? I understand that it might not have existed when Batik started but could you not just use it at least as a fall-back?
Currently I am fetching a XMLReader just to get its class name into a string:
String parserName = SAXParserFactory.newInstance().newSAXParser().getXMLReader().getClass().getName();
Cheers Robert
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]