Validate enumerations with the parser.
用解析器验证枚举列表。
因此,解析器退出。
The parser can take several parameters.
解析器可以接受以下几个参数。
Finally, Listing 6 begins the parser loop.
最后,清单6开始解析器循环。
XMLReaderFactory creates the parser object.
XMLReaderFactory创建语法分析器对象。
Now fill in the actions taken by the parser.
现在,填入由解析器来完成的动作。
So, the parser does not validate the values.
因此,解析器并不验证值。
The bulk of the code tracks the parser state.
大部分代码都在跟踪解析器的状态。
This file name is given to the parser for processing.
该文件名交给语法分析器进行处理。
In the push mode (SAX), the parser controls the loop.
在推模式(SAX)下,解析器控制循环。
Indeed, after firing an event, the parser forgets about it.
实际上,激发一个事件后,语法分析器就将其忘记。
In the example shown below, the parser is relatively simple.
在以下所示的实例中,解析器相对比较简单。
The parser checks the document against the schema as it reads.
解析器在进行读取时将检查文档的模式。
Validation of the base enumeration list is done by the parser.
用解析器对基本枚举列表进行验证。
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的解析器接口实现。
If this resource is on your hard drive, the parser must open a file.
如果该资源不在硬盘驱动器里,那么解析器就必须打开一个文件。
If it encounters one, the expression is valid and the parser is done.
如果遇到一个整数,则表达式是有效的,解析器将完成工作。
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.
然后,语法分析器将使用该实现来做词汇处理。
Thanks to this property, the parser will always load the correct schema.
由于这个属性,解析器总是可以加载正确的模式。
应用推荐