DOM vs. SAX??? Nah. (was RE: Storing Lots of Fiddly Bits (was Re: What is XML for?)

David Megginson david at megginson.com
Fri Feb 12 15:00:18 GMT 1999


Oren Ben-Kiki writes:

 > I know it is available - just as there are tools to build a DOM
 > tree from SAX events. I'd just like to see SAX being given an
 > official standing _within_ the DOM specs as "the" DOM visitor
 > interface. Ideally, SAX would be part of the DOM specs.

I'd be surprised to see that happen: not only are the two a little out
of sync on some of the fluff stuff (like CDATA section boundaries),
but all SAX callbacks would need an additional argument supplying a
pointer to the DOM node being visited.  It hardly makes sense to have

  startElement(String name, org.xml.sax.AttributeList atts)

when you could simply have

  startElement(org.w3c.dom.Element element)


All the best,


David

-- 
David Megginson                 david at megginson.com
           http://www.megginson.com/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list