Most of the setter methods take a boolean that turns the feature on if true or off if false.
If the coalescing feature is true, then the result tree will not contain any CDATA section nodes, even if the parsed XML document does contain CDATA sections.
When an XML parser is only a single component of a much larger program, it cannot be large, slow, or resource-intensive.
With Java applets, in particular, code size is a significant issue.
XML processors are classified as validating or non-validating types, depending on whether or not they check XML documents for validity.
A processor that discovers a validity error must be able to report it, but may continue with normal processing.