// Set the Smooks instnace to use the DOM filter...
smooks.setFilterSettings(FilterSettings.DEFAULT_DOM);
// Add a SAX-only visitor
smooks.addVisitor(new SAXVisitor01(), "a");
try {
smooks.filterSource(new StringSource("<a/>"));
fail("Expected SmooksException.");
} catch (SmooksException e) {