Apply event filters and stream filters to stax parsers 对stax解析器应用事件过滤器和流过滤器
To create a custom event filter 创建自定义事件过滤器:
Listing 1 shows an event filter that skips all xml processing instructions 清单1给出了一个忽略所有xml处理指令的事件过滤器。
Fortunately , stax allows you to skip certain event classes by implementing an event filter 幸运的是, stax允许您通过实现事件过滤器忽略某些事件类。
Learn how to apply event filters and stream filters to stax parsers in the second in this series of stax tips , 阅读stax技巧系列文章中的第2篇,了解如何对stax解析器应用事件过滤器和流过滤器, “