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

Re: IDL?

  • From: David Megginson <ak117@f...>
  • To: "Matthew Gertner" <matthewg@p...>
  • Date: Sun, 28 Dec 1997 20:31:43 -0500

Re: IDL?
Matthew Gertner writes:

 > Please correct me if I am wrong, but couldn't the phases in the
 > "life" of an XML document be summed as follows:
 >  Text -> Events -> Grove There is no point that I can see in going
 >  from a tree-based view
 > back to an event stream. The event stream is merely an evolution on
 > the path from text to a grove. Furthermoe, nothing I have seen in
 > the SAX proposal looks anything remotely like a simplified DOM. We
 > are talking about two complete different concepts here.

An event-based call-back interface would be useful for automatic
traversal of a DOM tree (rather than iterating through an
enumeration), but the callbacks should then take DOM nodes as
arguments.

Personally, I believe that an event-based interface is almost always
more difficult to use and understand than a tree-based interface -- it
requires the user to manage stacks and allocate objects herself.  On
the other hand, for advanced programmers, and event-based interface
has important advantages:

- it allows linear processing of very large documents with very little
  memory

- it can save the waste of building two separate trees, when the user
  needs to build a different kind of tree from the XML document

For me, then, the advantage of a common interface was not to help
naive coders, but to provide a standardised low-level access to XML
documents; to strain an analogy, SAX-J would be the IP to the DOM's
TCP.


All the best,


David

-- 
David Megginson                 ak117@f...
Microstar Software Ltd.         dmeggins@m...
      http://home.sprynet.com/sprynet/dmeggins/

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/
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...)


  • References:
    • Re: IDL?
      • From: "Matthew Gertner" <matthewg@p...>

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.