class IgnoreWhitespaceFilter implements LSParserFilter {

  @Override
  public short acceptNode(Node nodeArg) {<FILL_FUNCTION_BODY>}

  @Override
  public short startElement(Element elementArg) {
    return LSParserFilter.FILTER_ACCEPT;
  }

  @Override
  public int getWhatToShow() {
    return Node.NOTATION_NODE;
  }

}

    String textContent = nodeArg.getTextContent();
    if (textContent.trim().isEmpty()) {
      return LSParserFilter.FILTER_REJECT;
    } else {
      return LSParserFilter.FILTER_ACCEPT;
    }
  
<no_super_class>