[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: SAX: Parser Factory class

  • From: "John Wilson" <tug@w...>
  • To: "Andrew n marshall" <amarshal@u...>, "Xml-Dev List" <xml-dev@i...>
  • Date: Mon, 20 Apr 1998 11:20:05 +0100

algorithm sax parser
The Java Crypto Extensions allow you to request a generic implementation of an algorithm or a specific implementation. This is bases on having a set of "Providers" and a set of engine classes (essentially class factories). When calling getInstance() on the appropriate engine class you can specify either that you want any implementation of the algorithm or that you want a specific implementation from a specific provider. Providers are installed by editing a configuration file or by adding them dynamically using Security.addProvider(). Providers are ordered so a request for a generic implementation will be serviced by the first provider found which offers that algorithm.
 
It might be possible to do such a thing for SAX parsers, but you would really have to have an agreed set of functions that parsers did or did not implement. If you would then be able to say:
 
    "give me an instance of a parser that at minimum does this, this and this"
 
or
 
    "give me an instance of the IBM parser"
 
you should also be able to say
 
    "give me an instance of the IBM parser that does this, that and the other"
 
This raises two questions:
 
1/ Could everybody agree on the set of functions?
 
2/ Is there a real need for a general solution to the problem of working with several parsers?
-----Original Message-----
From: Andrew n marshall <amarshal@u...>
To: Xml-Dev List <xml-dev@i...>
Date: 16 April 1998 16:15
Subject: SAX: Parser Factory class

While it is great that there are so many SAX parsers available, the thing that bothers me is that my application has to know what Parser to load in just to use SAX.  And  this means that even is a SAX parser is available on the users machine, they may still have to download the one I use to to run my application.
 
If there is already a solution for this, then please let me know.
 
BEGIN:VCARD
VERSION:2.1
N:Wilson;John;G.
FN:John Wilson
ORG:The Wilson Partnership
TEL;WORK;VOICE:+44 1296 641072
TEL;CELL;VOICE:+44 976 611010
TEL;WORK;FAX:+44 1296 641874
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;5 Market Hill=0D=0AWhitchurch;Aylesbury;Buckinghamshire;HP22 4JB;UK
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:5 Market Hill=0D=0AWhitchurch=0D=0AAylesbury, Buckinghamshire HP22 4JB=0D=
=0AUK
URL:
URL:http://www.wilson.co.uk/
EMAIL;PREF;INTERNET:tug@w...
REV:19980420T102005Z
END:VCARD

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.