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 的事件-发送到应用程序。
应用推荐