xml.etree.ElementTree.Element.append()

append(subelement) Adds the element subelement to the end of this element’s internal list of subelements. Raises TypeError if subelement is not an Element.

xml.etree.ElementTree.Comment()

xml.etree.ElementTree.Comment(text=None) Comment element factory. This factory function creates a special element that will be serialized as an XML comment by the standard serializer. The comment string can be either a bytestring or a Unicode string. text is a string containing the comment string. Returns an element instance representing a comment. Note that XMLParser skips over comments in the input instead of creating comment objects for them. An ElementTree will only contain comment nodes

xml.etree.ElementTree.dump()

xml.etree.ElementTree.dump(elem) Writes an element tree or element structure to sys.stdout. This function should be used for debugging only. The exact output format is implementation dependent. In this version, it’s written as an ordinary XML file. elem is an element tree or an individual element.

xml.dom.SyntaxErr

exception xml.dom.SyntaxErr Raised when an invalid or illegal string is specified.

xml.dom.WrongDocumentErr

exception xml.dom.WrongDocumentErr Raised when a node is inserted in a different document than it currently belongs to, and the implementation does not support migrating the node from one document to the other.

xml.dom.Text.data

Text.data The content of the text node as a string.

xml.dom.pulldom.parse()

xml.dom.pulldom.parse(stream_or_string, parser=None, bufsize=None) Return a DOMEventStream from the given input. stream_or_string may be either a file name, or a file-like object. parser, if given, must be an XMLReader object. This function will change the document handler of the parser and activate namespace support; other parser configuration (like setting an entity resolver) must have been done in advance.

xml.dom.registerDOMImplementation()

xml.dom.registerDOMImplementation(name, factory) Register the factory function with the name name. The factory function should return an object which implements the DOMImplementation interface. The factory function can return the same object every time, or a new one for each call, as appropriate for the specific implementation (e.g. if that implementation supports some customization).

xml.dom.pulldom.DOMEventStream.getEvent()

getEvent() Return a tuple containing event and the current node as xml.dom.minidom.Document if event equals START_DOCUMENT, xml.dom.minidom.Element if event equals START_ELEMENT or END_ELEMENT or xml.dom.minidom.Text if event equals CHARACTERS. The current node does not contain informations about its children, unless expandNode() is called.

xml.dom.pulldom.parseString()

xml.dom.pulldom.parseString(string, parser=None) Return a DOMEventStream that represents the (Unicode) string.