public class WhitespaceNormalizedSource
extends javax.xml.transform.dom.DOMSource
"normalized" in this context means all whitespace characters are replaced by space characters and consecutive whitespace characters are collapsed.
| Constructor and Description |
|---|
WhitespaceNormalizedSource(javax.xml.transform.Source originalSource)
Creates a new source that consists of the given source with all
whitespace characters replaced by spaces and consecutive
whitespace characters collapsed.
|
WhitespaceNormalizedSource(javax.xml.transform.Source originalSource,
javax.xml.parsers.DocumentBuilderFactory dbf)
Creates a new source that consists of the given source with all
whitespace characters replaced by spaces and consecutive
whitespace characters collapsed.
|
public WhitespaceNormalizedSource(javax.xml.transform.Source originalSource)
originalSource - the original sourcepublic WhitespaceNormalizedSource(javax.xml.transform.Source originalSource,
javax.xml.parsers.DocumentBuilderFactory dbf)
originalSource - the original sourcedbf - the DocumentBuilderFactory to use when creating a
DOM document from originalSource