Re: SAX: Whitespace Handling (question 5 of 10)

James Clark (jjc@jclark.com)
Sun, 04 Jan 1998 07:39:22 +0700


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.

James