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

Re: Fw: DOM vs. SAX??? Nah. (was RE: Storing Lots of Fiddly Bits (was R

  • From: Walter Underwood <wunder@i...>
  • To: "Oren Ben-Kiki" <oren@c...>, "XML List" <xml-dev@i...>
  • Date: Thu, 11 Feb 1999 09:30:01 -0800

nah dom
At 02:17 PM 2/11/99 +0200, Oren Ben-Kiki wrote:
>David Megginson <david@m...> wrote:
>>
>>1. SAX and DOM are complementary
>
>
>IMVHO SAX should be defined not as a "parser interface" but as a "DOM tree
>visitor interface".

We use a fair amount of XML inside Infoseek, and were just having
this DOM vs. SAX discussion on Monday. There are applications that
really are interested in the document, and the DOM interface is a
tremendous help for those. For some other applications, the DOM is
a total waste of time -- they need to turn the contents of the
document into application data (maybe objects, maybe not), and
creating DOM objects for everything an unnecessary step that slows
things down and bloats code.

An example of the latter is the XML text extractor in the Ultraseek
Server search engine. It needs to convert the incoming XML document
to fieldname/textbuffer pairs so they can be further analyzed and 
inserted into the search index. The expat handlers are about 80 lines
of Python. Works great.

Other applications use XML in an RPC-like manner. Those parsers
need to behave like an RPC marshalling parser, oriented towards
translating into user structures/objects, not RPC- or XML-centered
objects.

We are using both SAX and DOM interfaces here. And C++ and Java
and Python.

But always editing the code with Emacs.

wunder

--
Walter R. Underwood
wunder@i...
wunder@b... (home)
http://software.infoseek.com/cce/ (my product)
http://www.best.com/~wunder/
1-408-543-6946

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
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@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.