OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] Replacing the XML parser in JRE 1.4&later

[ Lists Home | Date Index | Thread Index ]

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 
   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...



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
Détachement de Mont de Marsan
Tél. : 05 58 75 20 43
Fax  : 05 58 45 06 79


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS