[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


jdk 1.5 xml parser
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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.