Package org.xmlunit.input
Class ElementContentWhitespaceStrippedSource
- java.lang.Object
-
- javax.xml.transform.dom.DOMSource
-
- org.xmlunit.input.ElementContentWhitespaceStrippedSource
-
-
Constructor Summary
Constructors Constructor Description ElementContentWhitespaceStrippedSource(Source originalSource)Creates a new source that consists of the given source with all text nodes that only contain whitespace stripped.ElementContentWhitespaceStrippedSource(Source originalSource, DocumentBuilderFactory dbf)Creates a new source that consists of the given source with all text nodes that only contain whitespace stripped.
-
-
-
Constructor Detail
-
ElementContentWhitespaceStrippedSource
public ElementContentWhitespaceStrippedSource(Source originalSource)
Creates a new source that consists of the given source with all text nodes that only contain whitespace stripped.- Parameters:
originalSource- the original source
-
ElementContentWhitespaceStrippedSource
public ElementContentWhitespaceStrippedSource(Source originalSource, DocumentBuilderFactory dbf)
Creates a new source that consists of the given source with all text nodes that only contain whitespace stripped.- Parameters:
originalSource- the original sourcedbf- the DocumentBuilderFactory to use when creating a DOM document from originalSource
-
-