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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: SAX2(megginson.com) and XERCES (xml.apache.org)

[ Lists Home | Date Index | Thread Index ]
  • From: "Simon St.Laurent" <simonstl@simonstl.com>
  • To: Sunny <sandeepsethi@email.msn.com>, xml-dev@xml.org
  • 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
>(http://www.megginson.com/SAX/Java/index.html) ?
>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.)

Simon St.Laurent
XML Elements of Style / XML: A Primer, 2nd Ed.
http://www.simonstl.com - XML essays and books




 

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

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