code: public static void setIgnoreWhitespace(boolean ignore){
          ignoreWhitespace = ignore;
          getControlDocumentBuilderFactory().setIgnoringElementContentWhitespace(ignore);
          getTestDocumentBuilderFactory().setIgnoringElementContentWhitespace(ignore);
      }
docs: Whether to ignore whitespace when comparing node values.
  
  <p>This method also invokes
  <code>setIgnoringElementContentWhitespace()</code> on the
  underlying control AND test document builder factories.</p>
  
  <p>Setting this parameter has no effect on {@link
  #setNormalizeWhitespace whitespace inside texts}.</p>