W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2000


From: <keshlam@us.ibm.com>
Date: Wed, 2 Feb 2000 17:05:54 -0500
To: www-dom@w3.org
Message-ID: <85256879.00795EA3.00@D51MTA03.pok.ibm.com>
Extremely brief summary (we should probably add mention of SAX to the FAQ,
in the "DOM and other standards" section):

The DOM is the W3C's random-access tree-structured API for viewing the
contents of an XML document. It doesn't address parsing yet.

SAX is an XML parser API, which includes a sequential event-driven API for
viewing the contents of an XML document. It isn't a W3C project; it was
produced by an ad-hoc group on the XML-DEV mailing list.

SAX and DOM don't completely agree on what data should be presented to the
user. Level 2 of each spec come closer to agreeing.

Most parsers these days support both. There are software modules which will
produce SAX stream from DOM trees and vice versa. Which is best for your
program depends on the problem you're trying to solve and how you want to
approach it.

Joe Kesselman  / IBM Research
Received on Wednesday, 2 February 2000 17:06:10 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:06 UTC