SAX: Whitespace Handling (question 5 of 10)

James Clark jjc at
Sun Jan 4 00:52:55 GMT 1998

David Megginson wrote:

> Should SAX allow DTD-driven parsers to distinguish ignorable
> whitespace from other character data?
>   public void ignorableWhitespace (char ch[], int length);

Tough call.  (If we have it, it needs an offset argument as well.)

If we do this, then the stub (adapter) class should do

void ignorableWhitespace(char ch[], int off, int count) {
  charData(ch, off, count);

This means that users who don't care about the difference can just
ignore it.


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as:
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list