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


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: How to ??

[ Lists Home | Date Index | Thread Index ]
  • From: Lauren Wood <lauren@sqwest.bc.ca>
  • To: "XML Developers' List" <xml-dev@ic.ac.uk>
  • Date: Wed, 17 Mar 1999 11:55:32 -0800

David Megginson wrote:

> Or more generally, the point that people constantly forget is that the
> DOM is an interface, not a processor -- it provides a means for
> representing the information that is made available to it, which may
> or may not correspond in any obvious way with the information in the
> original XML document (if there ever was an original XML document).

And in fact people could use (some of?) the DOM interfaces to access
documents that never were and never would be XML, simply by treating
objects as elements, attributes etc. The DOM makes no guarantees as
to what the original document was, simply that once you have a
structure model built, you can delete things called elements, change
the content of things called comments, etc.

> If SAX 1.0 made isSpecified information available, the DOM could model
> it; since SAX 1.0 does not make that information available, the DOM
> interface has nothing to pass on.  In other words, this is a
> quality-of-implementation issue, not a conformance issue.

Non-validating parsers don't need to pass this information on to the
DOM structure model either, since they may not have it. And XML
processors may choose not to pass comments on at all, or to
completely expand entity references before building the structure
model. All of which makes those DOM interfaces not relevant to those
documents, although obviously scripts or other applications that
call them shouldn't crash and burn just because the processor
doesn't pass on comments, for example.


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