该文件名交给语法分析器进行处理。
非验证语法分析器忽略该功能。
是一个非验证的低级语法分析器。
xml语法分析器读取并解释该文档。
此外,它使模拟语法分析器变得很简单。
Furthermore it turns out that it's easy to simulate the parser.
因此,甚至可以不重新编译就更改语法分析器。
It is, therefore, possible to change the parser without even recompiling.
然后,语法分析器将使用该实现来做词汇处理。
That implementation would then be used by the parser for lexical processing.
不需要语法分析器来提供Locator对象。
图3显示语法分析器在读取文档时如何生成事件。
Figure 3 shows how the parser generates events as it reads the document.
再假设它已经在语法分析器的实例上注册了该类。
Also presume that it has registered the class on the instance of the parser.
当然,在语法分析器分析文档语法时发生很多事。
Of course, many things happen as the parser decodes the document.
换句话说,语法分析器会认为这两个文档是不同的。
In other words, a parser would consider the two documents to be different.
这些选项影响所有通过类厂获得的语法分析器实例。
These options affect all parser instances obtained through the factory.
实际上,激发一个事件后,语法分析器就将其忘记。
清单2:python选择最佳语法分析器的语句。
安装了定制错误处理器后,语法分析器不再抛出异常。
After a custom error handler is installed, the parser doesn't throw exceptions anymore.
创建语法分析器除非被覆盖,否则它还连接默认接口。
Creating a parser also attaches default interfaces unless overridden.
语法分析器读取这棵树,并通过事件为应用程序描述它。
The parser reads the tree and describes it, through events, to your application.
在清单2中,更改语法分析器实现只涉及更改一个类名。
In Listing 2, changing parser implementations simply involves changing a single class name.
例如,当没有XML声明时,某些语法分析器发出警告。
For example, some parsers issue a warning when there is no XML declaration.
语法分析器,代表应用程序解码XML文件的软件组件。
The parser, a software component that decodes XML files on behalf of the application.
语法分析器有效地使开发者避开复杂的XML语法。
Parsers effectively shield developers from the intricacies of the XML syntax.
XMLReaderFactory创建语法分析器对象。
它还防止向语法分析器类添加任何特定于供应商的附加功能。
It also protects you from using any vendor-specific additions to the parser class.
characters,语法分析器遇到字符数据时调用它。
Characters which the parser calls when it encounters character data.
有一个缺点是:在更改语法分析器时,仍必须对代码做一些更改。
The one drawback is that, when changing the parser, you still have to make some changes to your code.
endElement() ,语法分析器遇到结束标记时调用它
这允许您指定语法分析器可以忽略哪个空格,而哪个空格是重要的。
That allows you to specify which whitespace the parser can ignore and which is significant.
该片段演示了如何将应用程序翻译处理与基本语法分析器功能相挂钩。
This fragment demonstrates how to hook your application-translation processing into the basic parser function.
这些不是xml属性,而是与在xml语法分析器中讲到的特性类似。
These are not XML attributes, but are similar to the properties I discussed in reference to XML parsers.
应用推荐