@@ -111,13 +111,17 @@ msgid ""
111111":meth:`XMLReader.parse` method and for returning from "
112112"EntityResolver.resolveEntity."
113113msgstr ""
114+ "应用程序将创建这个类的对象以便在 :meth:`XMLReader.parse` 方法中使用或是用于从 "
115+ "EntityResolver.resolveEntity 返回值。"
114116
115117#: ../../library/xml.sax.reader.rst:67
116118msgid ""
117119"An :class:`InputSource` belongs to the application, the :class:`XMLReader` "
118120"is not allowed to modify :class:`InputSource` objects passed to it from the "
119121"application, although it may make copies and modify those."
120122msgstr ""
123+ ":class:`InputSource` 属于应用程序,:class:`XMLReader` 不能修改从应用程序传递给它的 "
124+ ":class:`InputSource` 对象,但它可以创建副本并进行修改。"
121125
122126#: ../../library/xml.sax.reader.rst:74
123127msgid ""
@@ -129,6 +133,9 @@ msgid ""
129133" instantiated by readers; *attrs* must be a dictionary-like object "
130134"containing a mapping from attribute names to attribute values."
131135msgstr ""
136+ "这是 :class:`Attributes` 接口(参见 :ref:`attributes-objects` 一节)的具体实现。 这是一个 "
137+ ":meth:`startElement` 调用中的元素属性的字典类对象。 除了最有用处的字典操作,它还支持接口所描述的一些其他方法。 "
138+ "该类的对象应当由读取器来实例化;*attrs* 必须为包含从属性名到属性值的映射的字典类对象。"
132139
133140#: ../../library/xml.sax.reader.rst:85
134141msgid ""
@@ -139,14 +146,18 @@ msgid ""
139146"they appear in the original document. This class implements the "
140147":class:`AttributesNS` interface (see section :ref:`attributes-ns-objects`)."
141148msgstr ""
149+ "可感知命名空间的 :class:`AttributesImpl` 变体形式,它将被传递给 :meth:`startElementNS`。 它派生自 "
150+ ":class:`AttributesImpl`,但会将属性名称解读为 *namespaceURI* 和 *localname* 二元组。 "
151+ "此外,它还提供了一些期望接收在原始文档中出现的限定名称的方法。 这个类实现了 :class:`AttributesNS` 接口(参见 :ref"
152+ ":`attributes-ns-objects` 一节)。"
142153
143154#: ../../library/xml.sax.reader.rst:96
144155msgid "XMLReader Objects"
145156msgstr "XMLReader 对象"
146157
147158#: ../../library/xml.sax.reader.rst:98
148159msgid "The :class:`XMLReader` interface supports the following methods:"
149- msgstr ""
160+ msgstr ":class:`XMLReader` 接口支持下列方法: "
150161
151162#: ../../library/xml.sax.reader.rst:103
152163msgid ""
0 commit comments