What the ContentHandler Doesn’t Tell You

The ContentHandler interface is designed to provide everything most applications need to know about an XML instance document. The things it leaves out are things you rarely care about, though most of these are available through other callback interfaces discussed in upcoming chapters. These include:

The only things that are truly not available in SAX2, even after all optional extensions are included, are:

The only common use case for most of this information is an XML editor. Editors are actually quite strange beasts compared to most client applications and really require a custom parser and API. None of the standard APIs or parsers provide all the information an editor needs.


Copyright 2001, 2002 Elliotte Rusty Haroldelharo@metalab.unc.eduLast Modified October 16, 2001
Up To Cafe con Leche