此内容没有您所选择的语言版本。
12.31. Text Accumulation Example
public class MyVisitor implements SAXVisitBefore, SAXVisitAfter { public void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException { element.accumulateText(); } public void visitAfter(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException { String fragmentText = element.getTextContent(); // ... etc ... } }