Smooks smooks = new Smooks();
StringResult result = new StringResult();
smooks.addVisitor(new DefaultSAXElementSerializer(), "#document");
smooks.addVisitor(new DefaultSAXElementSerializer(), "#document/**");
smooks.setFilterSettings(new FilterSettings().setDefaultSerializationOn(false).setFilterType(StreamFilterType.SAX));
smooks.filterSource(new StreamSource(getClass().getResourceAsStream("order.xml")), result);
assertOK("expected_01.xml", result);
}