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


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: Announcement: SAX2 1999-06-01 alpha release for Java

[ Lists Home | Date Index | Thread Index ]
  • From: Miles Sabin <msabin@cromwellmedia.co.uk>
  • To: 'XML Developers' List' <xml-dev@ic.ac.uk>
  • Date: Tue, 22 Jun 1999 11:07:56 +0100

David Brownell wrote,
> Miles Sabin writes:
> > Is there any chance of us changing that? How about 
> > an alternative start tag reporting interface which 
> > reports,
> >
> >   startOpenElement(String name);
> >   startAttribute(String name);
> >   attributeCharacters(char[] chars, int off, int len);
> >   endAttribute(String name);
> >   endOpenElement(String name);
> Making an extra 2 (+3x #attributes) invocations per 
> element could also be a performance issue of no small 
> note!

Don't forget that those calls are traded off against
an awful lot of String construction (constructor calls
and object allocation).

> Miles -- you're on the right track re using the 
> extension mechanism for this functionality.  What'd be 
> needed is parsers which would use it... I think that 
> the API calls you sketched above might do the job, 
> maybe even within the DTD.  (I have no interest in 
> exposing parameter entity handling, FWIW!)

Err ... well, actually, my parser _does_ work more or 
less the way I've described: SAX is layered on top. I'd 
quite like to be able to expose this additional 
information via SAX rather than having to use our
proprietary APIs. Clearly, tho', this'd only be of any
use if other parsers also implemented such a handler.



Miles Sabin                          Cromwell Media
Internet Systems Architect           5/6 Glenthorne Mews
+44 (0)181 410 2230                  London, W6 0LJ
msabin@cromwellmedia.co.uk           England

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