This a PerlSAX filter that detects which character data contains ignorable whitespace and optionally filters it. WWW: https://metacpan.org/release/XML-Filter-DetectWS