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

Re: Streams, protocols, documents and fragments

  • From: Marcelo Cantos <marcelo@m...>
  • To: xml-dev@i...
  • Date: Mon, 1 Mar 1999 13:13:29 +1100

Re: Streams
On Fri, Feb 26, 1999 at 08:04:40AM -0800, Tom Harding wrote:
> David Megginson wrote:
> 
> > -- a general-purpose DOM would be *extremely* inefficient for
> > handling things like vector graphics or 3D worlds (to name only
> > two), though it is always possible to expose their optimised
> > object models through a DOM interface later if necessary.
> 
> In lots of applications, the data can't stay in an XML
> representation for very long anyway, because of what you're
> integrating it with/displaying it on/routing it through/converting
> it to/storing it in/etc... I view the DOM as a standard, OO way of
> manipulating the contents of a document.  It lets applications get
> work done, even without taking an end-to-end OO approach.  Perhaps
> I'm showing my bias here ;D

It's the translation process that hits hardest, however.  C and
FORTRAN compilers rarely build parse trees, because it is much more
efficient to generate code directly from token streams.  What you seem
to be suggesting is that a parser should pump an event stream straight
into DOM and then into another domain-specific structure.  This is
just adding an often gratuitous layer that can incur a massive
performance penalty for large documents (a 3D model of a refinery,
say).

In such circumstances I would much rather build the domain-specific
structure straight from the event stream.  (In fact, I have serious
reservations about using XML at all for 3D model transmission and
storage -- the markup tends to grossly outweigh the content, which
consists primarily of numbers.  Compression during transport _and_
storage would be a must).


Cheers,
Marcelo

-- 
http://www.simdb.com/~marcelo/

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.