xml.etree.ElementTree.SubElement(parent, tag, attrib={}, **extra) Subelement factory. This function creates an element instance
class xml.sax.handler.ContentHandler This is the main callback interface in SAX, and the one most important to applications
attrib A dictionary containing the element’s attributes. Note that while the attrib value is always a real mutable
close() Signal the parser that the data stream is terminated. Unlike XMLParser.close(), this method always returns
Element.removeAttribute(name) Remove an attribute by name. If there is no matching attribute, a NotFoundErr is
Element.getElementsByTagName(tagName) Same as equivalent method in the Document class.
Comment.data The content of the comment as a string. The attribute contains all characters between the leading <!-
expandNode(node) Expands all children of node into node. Example:
InputSource.getEncoding() Get the character encoding of this InputSource.
class xml.sax.saxutils.XMLGenerator(out=None, encoding='iso-8859-1', short_empty_elements=False) This class implements the
Page 24 of 34