非验证语法分析器忽略该功能。
是一个非验证的低级语法分析器。
xml语法分析器读取并解释该文档。
此外,它使模拟语法分析器变得很简单。
Furthermore it turns out that it's easy to simulate the parser.
然后,语法分析器将使用该实现来做词汇处理。
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.
当然,在语法分析器分析文档语法时发生很多事。
Of course, many things happen as the parser decodes the document.
xmllib是一个非验证的低级语法分析器。
这些选项影响所有通过类厂获得的语法分析器实例。
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文件的软件组件。
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.
startElement,语法分析器读取到开始标记时调用它。
StartElement which the parser calls when it reads a start tag.
该片段演示了如何将应用程序翻译处理与基本语法分析器功能相挂钩。
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.
实际上,不同供应商的XSL处理器比xml语法分析器有更大的不同。
In fact, XSL processors have even greater variance across providers than their XML parser counterparts.
当然,清单1中存在的问题是,为了更改语法分析器,必须更改实现类。
Of course, the problem with Listing 1 is that, in order to change parsers, you have to change the implementation class.
您可能已经知道语法分析器有两类接口 - 基于对象的和基于事件的接口。
You probably already know that there are two classes of interfaces for parsers: object-based and event-based interfaces.
应用推荐