xml.etree.ElementTree.ElementTree.iterfind()

iterfind(match, namespaces=None) Same as Element.iterfind(), starting at the root of the tree. New in version 3.2.

xml.etree.ElementTree.ElementTree.getiterator()

getiterator(tag=None) Deprecated since version 3.2: Use method ElementTree.iter() instead.

xml.etree.ElementTree.ElementTree.iter()

iter(tag=None) Creates and returns a tree iterator for the root element. The iterator loops over all elements in this tree, in section order. tag is the tag to look for (default is to return all elements).

xml.etree.ElementTree.ElementTree.find()

find(match, namespaces=None) Same as Element.find(), starting at the root of the tree.

xml.etree.ElementTree.ElementTree.findall()

findall(match, namespaces=None) Same as Element.findall(), starting at the root of the tree.

xml.etree.ElementTree.ElementTree.getroot()

getroot() Returns the root element for this tree.

xml.etree.ElementTree.ElementTree.findtext()

findtext(match, default=None, namespaces=None) Same as Element.findtext(), starting at the root of the tree.

xml.etree.ElementTree.Element.text

text tail These attributes can be used to hold additional data associated with the element. Their values are usually strings but may be any application-specific object. If the element is created from an XML file, the text attribute holds either the text between the element’s start tag and its first child or end tag, or None, and the tail attribute holds either the text between the element’s end tag and the next tag, or None. For the XML data <a><b>1<c>2<d/>3</c>&

xml.etree.ElementTree.Element.set()

set(key, value) Set the attribute key on the element to value.

xml.etree.ElementTree.Element.remove()

remove(subelement) Removes subelement from the element. Unlike the find* methods this method compares elements based on the instance identity, not on tag value or contents.