xml.etree.ElementTree.dump(elem) Writes an element tree or element structure to sys.stdout. This function should be used for
get(key, default=None) Gets the element attribute named key. Returns the attribute
items() Returns the element attributes as a sequence of (name, value) pairs. The attributes are returned in an arbitrary order
read_events() Return an iterator over the events which have been encountered in the data fed to the parser. The iterator yields
IncrementalParser.reset() This method is called after close has been called to reset the parser so that it is ready to parse
tag A string identifying what kind of data this element represents (the element type, in other words).
Attr.value The text value of the attribute. This is a synonym for the nodeValue attribute.
IncrementalParser.close() Assume the end of the document. That will check well-formedness conditions that can be checked only
Element.setAttributeNode(newAttr) Add a new attribute node to the element, replacing an existing attribute if necessary if the
exception xml.parsers.expat.error Alias for ExpatError.
Page 16 of 34