SkipEmptyTagsFilter extends FullXmlFilter { public SkipEmptyTagsFilter(ContentHandler handler) { super(handler); } SkipEmptyTagsFilter(ContentHandler handler); void handlePendingStartElements(); @Override void startElement(String uri, String localName, String qName, Attributes atts); @Override void endElement(String uri, String localName, String qName); @Override void characters(char[] ch, int start, int length); @Override void startCDATA(); @Override void startPrefixMapping(String prefix, String uri); @Override void endPrefixMapping(String prefix); @Override void comment(char[] ch, int start, int length);  }
@Test public void testSkipEmptyTagsFilter() throws Exception { String input = TestFileUtils.getTestFile("/SkipEmptyTags/in.xml"); String expected = TestFileUtils.getTestFile("/SkipEmptyTags/SkipEmptyTagsTestOut.xml"); SkipEmptyTagsFilter filter = new SkipEmptyTagsFilter(null); testXmlWriter(filter,input,expected); }