@@ -938,11 +938,11 @@ msgstr ""
938938msgid ""
939939"Remove an attribute by name. Note that it uses a localName, not a qname. "
940940"No exception is raised if there is no matching attribute."
941- msgstr ""
941+ msgstr "移除指定名称的属性。 请注意它是使用 localName 而不是 qname。 如果没有匹配的属性也不会引发异常。 "
942942
943943#: ../../library/xml.dom.rst:659
944944msgid "Set an attribute value from a string."
945- msgstr ""
945+ msgstr "将属性值设为指定的字符串。 "
946946
947947#: ../../library/xml.dom.rst:664
948948msgid ""
@@ -951,6 +951,8 @@ msgid ""
951951"the old attribute node will be returned. If *newAttr* is already in use, "
952952":exc:`InuseAttributeErr` will be raised."
953953msgstr ""
954+ "将一个新的属性节点添加到元素,当匹配到 :attr:`name` 属性时如有必要会替换现有的属性。 如果发生了替换,将返回原有属性节点。 如果 "
955+ "*newAttr* 已经被使用,则会引发 :exc:`InuseAttributeErr`。"
954956
955957#: ../../library/xml.dom.rst:672
956958msgid ""
@@ -959,13 +961,17 @@ msgid ""
959961"match. If a replacement occurs, the old attribute node will be returned. If"
960962" *newAttr* is already in use, :exc:`InuseAttributeErr` will be raised."
961963msgstr ""
964+ "将一个新的属性节点添加到元素,当匹配到 :attr:`namespaceURI` 和 :attr:`localName` "
965+ "属性时如有必要会替换现有的属性。 如果发生了替换,将返回原有属性节点。 如果 *newAttr* 已经被使用,则会引发 "
966+ ":exc:`InuseAttributeErr`。"
962967
963968#: ../../library/xml.dom.rst:680
964969msgid ""
965970"Set an attribute value from a string, given a *namespaceURI* and a *qname*. "
966971"Note that a qname is the whole attribute name. This is different than "
967972"above."
968973msgstr ""
974+ "将属性值设为 *namespaceURI* 和 *qname* 所给出的字符串。 请注意 qname 是整个属性名称。 这与上面的方法不同。"
969975
970976#: ../../library/xml.dom.rst:687
971977msgid "Attr Objects"
@@ -974,30 +980,30 @@ msgstr "Attr 对象"
974980#: ../../library/xml.dom.rst:689
975981msgid ""
976982":class:`Attr` inherits from :class:`Node`, so inherits all its attributes."
977- msgstr ""
983+ msgstr ":class:`Attr` 继承自 :class:`Node`,因此会继承其全部属性。 "
978984
979985#: ../../library/xml.dom.rst:694
980986msgid ""
981987"The attribute name. In a namespace-using document it may include a colon."
982- msgstr ""
988+ msgstr "属性名称。 在使用命名空间的文档中可能会包括冒号。 "
983989
984990#: ../../library/xml.dom.rst:700
985991msgid ""
986992"The part of the name following the colon if there is one, else the entire "
987993"name. This is a read-only attribute."
988- msgstr ""
994+ msgstr "名称在冒号之后的部分,如果有的话,否则为完整名称。 这是个只读属性。 "
989995
990996#: ../../library/xml.dom.rst:707
991997msgid ""
992998"The part of the name preceding the colon if there is one, else the empty "
993999"string."
994- msgstr ""
1000+ msgstr "名称在冒号之前的部分,如果有冒号的话,否则为空字符串。 "
9951001
9961002#: ../../library/xml.dom.rst:713
9971003msgid ""
9981004"The text value of the attribute. This is a synonym for the "
9991005":attr:`nodeValue` attribute."
1000- msgstr ""
1006+ msgstr "属性的文本值。 这与 :attr:`nodeValue` 属性同义。 "
10011007
10021008#: ../../library/xml.dom.rst:720
10031009msgid "NamedNodeMap Objects"
0 commit comments