Lines Matching refs:ElementTree
1 :mod:`xml.etree.ElementTree` --- The ElementTree XML API
4 .. module:: xml.etree.ElementTree
5 :synopsis: Implementation of the ElementTree API.
9 **Source code:** :source:`Lib/xml/etree/ElementTree.py`
13 The :mod:`xml.etree.ElementTree` module implements a simple and efficient API
25 The :mod:`xml.etree.ElementTree` module is not secure against
32 This is a short tutorial for using :mod:`xml.etree.ElementTree` (``ET`` in
41 :class:`ElementTree` represents the whole XML document as a tree, and
44 on the :class:`ElementTree` level. Interactions with a single XML element
82 import xml.etree.ElementTree as ET
92 create an :class:`ElementTree`. Check the documentation to be sure.
204 :class:`ElementTree` provides a simple way to build XML documents and write them to files.
205 The :meth:`ElementTree.write` method serves this purpose.
390 import xml.etree.ElementTree as ET
546 instead of creating comment objects for them. An :class:`ElementTree` will
587 *tree* can be an Element or ElementTree. *space* is the whitespace
642 :class:`ElementTree` instance.
654 :class:`ElementTree` will only contain processing instruction nodes if
691 meaning as in :meth:`ElementTree.write`. Returns an (optionally) encoded string
715 meaning as in :meth:`ElementTree.write`. Returns a list of (optionally) encoded
771 … this file, load it as usual, and pass the root element to the :mod:`xml.etree.ElementTree` module:
775 from xml.etree import ElementTree, ElementInclude
777 tree = ElementTree.parse("document.xml")
822 expanded resource. If the parse mode is ``"xml"``, this is an ElementTree
839 ``"xml"``, this is an ElementTree instance. If the parse mode is "text",
898 *attrib* value is always a real mutable Python dictionary, an ElementTree
1080 ElementTree Objects
1084 .. class:: ElementTree(element=None, file=None)
1086 ElementTree wrapper class. This class represents an entire element
1190 >>> from xml.etree.ElementTree import ElementTree
1191 >>> tree = ElementTree()
1368 >>> from xml.etree.ElementTree import XMLParser