[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Replacing the XML parser in JRE 1.4&later
Hi, Thanks for the replies, the given links helped a lot! Now that I use Piccolo parser instead of the one included in the JDK, I have another question. As Piccolo doesn't include a validating parser, here is an excerpt from the Piccolo Javadoc : "If a validating parser is requested, this class will search for another SAXParserFactory to create the validating parser. This class will search for a factory in the following ways: 1. The system property com.bluecast.xml.ValidatingSAXParserFactory 2. The next listed Service Provider for javax.xml.parsers.SAXParserFactory 3. Crimson (org.apache.crimson.jaxp.SAXParserFactoryImpl)" The application we develop is designed to be run either on JRE 1.4 or 1.5. Piccolo seems to be developed for JRE 1.4 as Crimson is the included parser. But the parser included in JRE 1.5 is Xerces, in the package com.sun.org.apache.xerces... My question is: is there a way to set the system property to the correct value beside testing for the JRE version? What is that "Service Provider listing"? Or maybe I should just customize Piccolo to my needs... TIA Jimmy David Carver a écrit : > Jimmy Monin wrote: > >> Hi, >> We have a client/server application running on Tomcat with JDK 1.4 >> and web clients with JRE 1.4 or later. We recently merged to JDK 1.4 >> ; before we were using JDK 1.3 with JAXP and the Piccolo parser. As >> parsing speed is crucial to our application, we want to keep Piccolo. >> How can I "replace" the included Xerces parser in JDK1.4+ with Piccolo? >> >> Thanks in advance, >> > This article should give you the information that you need. You don't > actually replace, you just specify another parser: > > http://java.sun.com/developer/EJTechTips/2003/tt0311.html#1 > > > > -- Jimmy Monin Développement & GCL EADS S&DE Détachement de Mont de Marsan Tél. : 05 58 75 20 43 Fax : 05 58 45 06 79
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|