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

Miles Sabin msabin at cromwellmedia.co.uk
Tue Jun 22 12:09:51 BST 1999


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.

Cheers,


Miles

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

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





More information about the Xml-dev mailing list