@@ -1952,7 +1952,7 @@ The version of the ElementTree library included with Python was updated to
19521952version 1.3. Some of the new features are:
19531953
19541954* The various parsing functions now take a *parser * keyword argument
1955- giving an :class: `XMLParser ` instance that will
1955+ giving an :class: `~xml.etree.ElementTree. XMLParser ` instance that will
19561956 be used. This makes it possible to override the file's internal encoding::
19571957
19581958 p = ET.XMLParser(encoding='utf-8')
@@ -1964,8 +1964,8 @@ version 1.3. Some of the new features are:
19641964
19651965* ElementTree's code for converting trees to a string has been
19661966 significantly reworked, making it roughly twice as fast in many
1967- cases. The :class: ` ElementTree ` : meth: `write ` and :class: ` Element `
1968- :meth: `write ` methods now have a *method * parameter that can be
1967+ cases. The :meth: `ElementTree. write() <xml.etree.ElementTree.ElementTree.write> `
1968+ and :meth: `Element. write ` methods now have a *method * parameter that can be
19691969 "xml" (the default), "html", or "text". HTML mode will output empty
19701970 elements as ``<empty></empty> `` instead of ``<empty/> ``, and text
19711971 mode will skip over elements and only output the text chunks. If
@@ -1978,11 +1978,12 @@ version 1.3. Some of the new features are:
19781978 declarations are now output on the root element, not scattered throughout
19791979 the resulting XML. You can set the default namespace for a tree
19801980 by setting the :attr: `default_namespace ` attribute and can
1981- register new prefixes with :meth: `register_namespace `. In XML mode,
1981+ register new prefixes with :meth: `~xml.etree.ElementTree. register_namespace `. In XML mode,
19821982 you can use the true/false *xml_declaration * parameter to suppress the
19831983 XML declaration.
19841984
1985- * New :class: `Element ` method: :meth: `extend ` appends the items from a
1985+ * New :class: `~xml.etree.ElementTree.Element ` method:
1986+ :meth: `~xml.etree.ElementTree.Element.extend ` appends the items from a
19861987 sequence to the element's children. Elements themselves behave like
19871988 sequences, so it's easy to move children from one element to
19881989 another::
@@ -1998,13 +1999,15 @@ version 1.3. Some of the new features are:
19981999 # Outputs <root><item>1</item>...</root>
19992000 print ET.tostring(new)
20002001
2001- * New :class: `Element ` method: :meth: `iter ` yields the children of the
2002+ * New :class: `Element ` method:
2003+ :meth: `~xml.etree.ElementTree.Element.iter ` yields the children of the
20022004 element as a generator. It's also possible to write ``for child in
20032005 elem: `` to loop over an element's children. The existing method
20042006 :meth: `getiterator ` is now deprecated, as is :meth: `getchildren `
20052007 which constructs and returns a list of children.
20062008
2007- * New :class: `Element ` method: :meth: `itertext ` yields all chunks of
2009+ * New :class: `Element ` method:
2010+ :meth: `~xml.etree.ElementTree.Element.itertext ` yields all chunks of
20082011 text that are descendants of the element. For example::
20092012
20102013 t = ET.XML("""<list>
0 commit comments