处理程序一般在报告结束标记之前,需要做累积文本的工作,随后对文本做某些操作。
Your handler generally needs to accumulate text until the end tag is reported, and then do something with the text.
解析器向一个事件处理程序发送事件,比如元素的开始和结束,而事件处理程序则处理该信息。
The parser sends events, such as the start or end of an element, to an event handler, which processes the information.
如果在范围结束时事件处理程序的实例仍然在运行,则将允许其继续完成。
If instances of event handlers are still running when a scope ends, then they are allowed to complete.
应用推荐