Validate enumerations with the parser.
用解析器验证枚举列表。
因此,解析器退出。
Now fill in the actions taken by 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.
因此,解析器并不验证值。
I have written a JUnit test for the parser as well.
我还编写了用于该解析器的JUnit测试程序。
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.
实际上,激发一个事件后,语法分析器就将其忘记。
Validation of the base enumeration list is done by the parser.
用解析器对基本枚举列表进行验证。
In the example shown below, the parser is relatively simple.
在以下所示的实例中,解析器相对比较简单。
As we will see, once the XML hits the parser, it is too late.
正如我们将看到的那样,一旦XML到达了解析器,那么就为时已晚了。
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.
如果下一个记号不是整数,则解析器抛出异常。
This file needs to contain the class name of the parser configuration.
该文件需要包含解析器配置的类名。
If it encounters one, the expression is valid and the parser is done.
如果遇到一个整数,则表达式是有效的,解析器将完成工作。
Thanks to this property, the parser will always load the correct schema.
由于这个属性,解析器总是可以加载正确的模式。
Let's look very briefly at the internals of the parser you've produced.
让我们非常简要地了解一下您生成的解析器的内部原理。
It is, therefore, possible to change the parser without even recompiling.
因此,甚至可以不重新编译就更改语法分析器。
应用推荐