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


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: ModSAX: Proposed Core Properties

[ Lists Home | Date Index | Thread Index ]
  • From: David Megginson <david@megginson.com>
  • To: "XML Developers' List" <xml-dev@ic.ac.uk>
  • Date: Wed, 17 Mar 1999 16:15:11 -0500 (EST)

Ronald Bourret writes:
 > David Megginson wrote:
 > > So far, for consistency, I've made all pre-parse properties
 > > write-only and all parse-time properties read-only.  We'll have
 > > to think about this one.
 > What is the possible benefit of making any property write-only?
 > That is, can any harm ever come from reading a property?

There are three benefits:

1. Keep the API absolutely as small as possible.
2. Avoid confusion.
3. Allow properties to be unknown until set.

Any attempt to access a property can generate a
SAXNotSupportedException (or the derived SAXNotRecognizedException),
but there is no guarantee that they will be symmetrical.  For example,
a driver built on top of a parser might allow you to set the namespace
separator but not to query it, or vice-versa.

All the best,


David Megginson                 david@megginson.com

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