[Joost] Using an alternative SAX parser
Status: Beta
Brought to you by:
obecker
From: Vadim B. <vad...@di...> - 2012-01-11 07:52:46
|
Hello all, I am having an issue with the default Xerxes, ArrayIndexOutOfBoundsException: 8192. This is a known issue for very large XML documents and the cure is to use a newer version of Xerces, or another parser. This is what I am trying to do, using either xercesImpl.jar or jaxp-ri.jar. The question is, how do I accomplish this. I tried adding this: -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl \ -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl \ -cp .;xercesImpl.jar (it's in Windows) to the command line. Nothing, it crashes with the same trace of com.sun.org.apache blah blah which means the reassignment is ignored. What am I doing wrong? Best regards, Vadim Berman Digital Sonata Pty Ltd www.digitalsonata.com Australian Business Number: 54 122 188 998 Address: PO Box 803, Camberwell, VIC 3124, Australia Phone: +61 (0)3 98094461 Mobile: +61 (0)432 894 862 Skype: vadimberman |