Class ElementContentWhitespaceStrippedSource

  • All Implemented Interfaces:
    Source

    public class ElementContentWhitespaceStrippedSource
    extends DOMSource
    A source that is obtained from a different source by removing all text nodes that only contain whitespace.
    Since:
    XMLUnit 2.6.0
    • 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 source
        dbf - the DocumentBuilderFactory to use when creating a DOM document from originalSource