Lists Home |
Date Index |
- From: "Simon St.Laurent" <email@example.com>
- To: Sunny <firstname.lastname@example.org>, email@example.com
- Date: Sun, 06 Aug 2000 13:58:11 -0400
At 01:36 PM 8/6/00 -0400, Sunny wrote:
>I guess I'm confused about the difference between the two -
>my understanding is that -
>Xerces is a parser that implements DOM2 and SAX2 specs - I can download a
>java version from xml.apache.org
>Then, what's the SAX2.zip download on megginson.com
>Is that just another parser ?
SAX2 defines an interface parsers can use to send information about XML
documents to applications. The download at meggison.com includes the
interface definition and some helper code. Xerces provides an
implementation of that interface.
You should be able to replace Xerces with another SAX2-compliant parser and
not have to rewrite your code, if you stick to the SAX2 interfaces and
don't use Xerces-specific properties or features.
>Another question - about the SAX2 spec - SAX isn't a W3C initiative, right ?
>So did Megginson.com 'create' a sax spec - and apache.org implemented the
>spec in Xerces ?
David Megginson built SAX and SAX2 on his own initiative with lots of
contributions from various folks on the XML-Dev mailing list and other folks.
(We're all quite grateful, I think.)
XML Elements of Style / XML: A Primer, 2nd Ed.
http://www.simonstl.com - XML essays and books