As the name implies, an event-based parser sends events to the application.
正如其名称所暗示的,基于事件的语法分析器将事件发送给应用程序。
Listing 9 contains some noteworthy items. The first thing to consider is that the SAX parser is an event-based parser, which means that you build the actual document as it is parsed.
清单9中有一些值得注意的细节,首先考虑到的是SAX解析器是一个基于事件的解析器,这就意味着使用SAX进行解析时要建立真实文件。
SAX is an event-based API, meaning that the parser sends events -- similar to AWT events -- to your application as it progresses through the XML file.
SAX是基于事件的API,这意味着,语法分析器在处理 XML 文件时会将事件-类似于 AWT 的事件-发送到应用程序。
The XML_Parser package: Download an XML parser based on PHP's built-in XML extension and supports two basic modes of operation: func and event.
xml_parser包:这种以php内置xml扩展为基础的xml解析器支持两种操作模式:函数和事件。
The XML Pull parser API is similar to the cursor-based API provided by StAX; the parser state can be examined for information about the last parsed event, then advanced to the next one, and so on.
XMLPullParserAPI类似于StAX所提供的基于指针的API,可以通过分析解析器的状态获得上一个解析事件的信息,然后移动到下一个,依此类推。
The XML Pull parser API is similar to the cursor-based API provided by StAX; the parser state can be examined for information about the last parsed event, then advanced to the next one, and so on.
XMLPullParserAPI类似于StAX所提供的基于指针的API,可以通过分析解析器的状态获得上一个解析事件的信息,然后移动到下一个,依此类推。
应用推荐