OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: Streams, protocols, documents and fragments

[ Lists Home | Date Index | Thread Index ]
  • From: Marcelo Cantos <marcelo@mds.rmit.edu.au>
  • To: xml-dev@ic.ac.uk
  • Date: Mon, 1 Mar 1999 13:13:29 +1100

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,

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



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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS