Validate enumerations with the parser.
用解析器验证枚举列表。
因此,解析器退出。
XMLReaderFactory creates the parser object.
XMLReaderFactory创建语法分析器对象。
Finally, Listing 6 begins the parser loop.
最后,清单6开始解析器循环。
Initialize the parser and load the document.
初始化解析器并载入文档。
The bulk of the code tracks the parser state.
大部分代码都在跟踪解析器的状态。
So, the parser does not validate the values.
因此,解析器并不验证值。
In the push mode (SAX), the parser controls the loop.
在推模式(SAX)下,解析器控制循环。
Indeed, after firing an event, the parser forgets about it.
实际上,激发一个事件后,语法分析器就将其忘记。
StartElement which the parser calls when it reads a start tag.
startElement,语法分析器读取到开始标记时调用它。
At the lowest level, the parser checks for syntax conformance.
最低层上解析器检查是否存在语法错误。
Disadvantage: Enumerated values are not validated by the parser.
缺点:解析器不验证枚举值。
In contrast, RXP builds the data structure right in the parser.
相反,RXP就在解析器中建立数据结构。
It took longer to understand features like the parser and the PDOM.
理解像解析器和PDOM这样的功能则花费了更长的时间。
Change these lines of code according to the parser instruction.
根据解析器操作说明更改这几行代码。
Listing 9 shows a DOM-based implementation of the parser interface.
清单9显示了一个基于DOM的解析器接口实现。
Of course, many things happen as the parser decodes the document.
当然,在语法分析器分析文档语法时发生很多事。
If the next token isn't an integer, the parser throws an exception.
如果下一个记号不是整数,则解析器抛出异常。
Let's look very briefly at the internals of the parser you've produced.
让我们非常简要地了解一下您生成的解析器的内部原理。
Figure 3 shows how the parser generates events as it reads the document.
图3显示语法分析器在读取文档时如何生成事件。
Configuring the parser in this way speeds up the processing of attributes.
通过这种方式配置解析器可以提高处理属性的速度。
Furthermore, don't assume you won't see any content before the parser error.
此外,也不要假设解析错误出现之前看不到任何内容。
That implementation would then be used by the parser for lexical processing.
然后,语法分析器将使用该实现来做词汇处理。
Theoretically, the parser could report data up to the first error it finds.
从理论上讲,解析器将报告数据直到发现第一个错误。
To access the plug-in parser's functionality, the parser class name must be used.
为了访问插件解析器的功能,必须使用解析器类名。
Each is easily separated, and each can be validated by the parser, as in Listing 7.
两个值很容易分离,而且都可以用解析器验证,如清单7所示。
It also protects you from using any vendor-specific additions to the parser class.
它还防止向语法分析器类添加任何特定于供应商的附加功能。
A domain determines the parser that is used when parsing and serializing the message.
域确定了在解析和序列化该消息时使用的解析器。
In this program, the parser USES global variables to track the list of messages parsed.
在这个程序中,解析器使用全局变量来追踪解析的消息列表。
InputSource controls how the parser reads files, including XML documents and entities.
InputSource控制语法分析器如何读取文件,包括XML文档和实体。
应用推荐