Validate enumerations with the parser.
用解析器验证枚举列表。
因此,解析器退出。
Finally, Listing 6 begins the parser loop.
最后,清单6开始解析器循环。
XMLReaderFactory creates the parser object.
XMLReaderFactory创建语法分析器对象。
So, the parser does not validate the values.
因此,解析器并不验证值。
Initialize the parser and load the document.
初始化解析器并载入文档。
The bulk of the code tracks the parser state.
大部分代码都在跟踪解析器的状态。
In the push mode (SAX), the parser controls the loop.
在推模式(SAX)下,解析器控制循环。
Indeed, after firing an event, the parser forgets about it.
实际上,激发一个事件后,语法分析器就将其忘记。
The parser checks the document against the schema as it reads.
解析器在进行读取时将检查文档的模式。
At the lowest level, the parser checks for syntax conformance.
最低层上解析器检查是否存在语法错误。
It took longer to understand features like the parser and the PDOM.
理解像解析器和PDOM这样的功能则花费了更长的时间。
Change these lines of code according to the parser instruction.
根据解析器操作说明更改这几行代码。
Furthermore it turns out that it's easy to simulate the parser.
此外,它使模拟语法分析器变得很简单。
In contrast, RXP builds the data structure right in the parser.
相反,RXP就在解析器中建立数据结构。
The parser then USES the compiled schemas to validate XML documents.
然后解析器使用编译后的模式验证XML文档。
Disadvantage: Enumerated values are not validated by the parser.
缺点:解析器不验证枚举值。
Of course, many things happen as the parser decodes the document.
当然,在语法分析器分析文档语法时发生很多事。
If the next token isn't an integer, the parser throws an exception.
如果下一个记号不是整数,则解析器抛出异常。
Listing 9 shows a DOM-based implementation of the parser interface.
清单9显示了一个基于DOM的解析器接口实现。
Let's look very briefly at the internals of the parser you've produced.
让我们非常简要地了解一下您生成的解析器的内部原理。
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.
然后,语法分析器将使用该实现来做词汇处理。
Figure 3 shows how the parser generates events as it reads the document.
图3显示语法分析器在读取文档时如何生成事件。
Then the class USES some of the parser API to get a list of declarations.
然后该类使用一些剖析器api,以得到声明的一个列表。
Configuring the parser in this way speeds up the processing of attributes.
通过这种方式配置解析器可以提高处理属性的速度。
Theoretically, the parser could report data up to the first error it finds.
从理论上讲,解析器将报告数据直到发现第一个错误。
The parser reads the tree and describes it, through events, to your application.
语法分析器读取这棵树,并通过事件为应用程序描述它。
The parser fills a data structure that is acted on when the document is finished.
解析器将填写一个数据结构,当完成文档时该数据结构将起作用。
It also protects you from using any vendor-specific additions to the parser class.
它还防止向语法分析器类添加任何特定于供应商的附加功能。
应用推荐