This a PerlSAX filter that detects which character data contains ignorable whitespace and optionally filters it.