Package org.xmlunit.input
Class ElementContentWhitespaceStrippedSource
java.lang.Object
javax.xml.transform.dom.DOMSource
org.xmlunit.input.ElementContentWhitespaceStrippedSource
- All Implemented Interfaces:
Source
A source that is obtained from a different source by removing all
text nodes that only contain whitespace.
- Since:
- XMLUnit 2.6.0
-
Field Summary
-
Constructor Summary
ConstructorDescriptionElementContentWhitespaceStrippedSource
(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. -
Method Summary
Methods inherited from class javax.xml.transform.dom.DOMSource
getNode, getSystemId, isEmpty, setNode, setSystemId
-
Constructor Details
-
ElementContentWhitespaceStrippedSource
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
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
-