SAX: Whitespace Handling (question 5 of 10)
James Clark
jjc at jclark.com
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.
James
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/
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