This leads to a dual approach: You have Web pages for human consumption and you have an API where computers can pull out structured information for automatic processing.
With a pull parser, the code that handles one part of the document can parse only as much as it needs and then hand off the parser to whatever comes next in the document processing.
使用拉式解析器,处理文档某一部分的代码仅解析它所需的部分,然后由解析器进行接下来的文档处理。
3
Developers who try to pull XML design too close to the details of processing generally end up making that processing more difficult in the long term.