Lines Matching defs:XML
1 """Lightweight XML support for Python.
3 XML is an inherently hierarchical data format, and the most natural way to
6 1. ElementTree represents the whole XML document as a tree and
11 usually done on the ElementTree level. Interactions with a single XML element
32 and convert it to and from XML.
87 "XML", "XMLID",
107 """An error when parsing an XML document.
126 """An XML element.
448 serializes as an XML comment.
462 serializes as an XML comment.
526 """An XML element hierarchy.
529 standard XML.
532 *file* is an optional file handle or file name of an XML file whose
557 """Load external XML document into element tree.
699 """Write element tree to a file as XML.
706 *xml_declaration* -- bool indicating if an XML declaration should be
707 added to the output. If None, an XML declaration
711 *default_namespace* -- sets the default XML namespace (for "xmlns")
832 # FIXME: can this be handled in XML 1.0?
1004 "http://www.w3.org/XML/1998/namespace": "xml",
1049 # Although section 2.11 of the XML specification states that CR or
1084 """Generate string representation of XML element.
1092 sets the default XML namespace (for "xmlns").
1094 Returns an (optionally) encoded string containing the XML data.
1142 ordinary XML file.
1155 """Indent an XML document by inserting newlines and indentation space
1209 """Parse XML document into element tree.
1211 *source* is a filename or file object containing XML data,
1223 """Incrementally parse XML document into ElementTree.
1231 *source* is a filename or file object containing XML data, *events* is
1325 def XML(text, parser=None):
1326 """Parse XML document from string constant.
1328 This function can be used to embed "XML Literals" in Python code.
1330 *text* is a string containing XML data, *parser* is an
1343 """Parse XML document from string constant for its IDs.
1345 *text* is a string containing XML data, *parser* is an
1363 # Parse XML document from string constant. Alias for XML().
1364 fromstring = XML
1367 """Parse XML document from sequence of string fragments.
1390 You can use this class to build an element structure using a custom XML
1391 parser, or a parser for some other XML-like format.
1507 """Element structure builder for XML source data based on the expat parser.
1511 which if given, overrides the encoding specified in the XML file:
1735 """Convert XML to its C14N 2.0 serialised form.
1738 the serialised canonical XML output (text, not bytes) through its ``.write()``
1742 Either *xml_data* (an XML string) or *from_file* (a file path or
1771 Serialises parse events to XML C14N 2.0.
1812 ("http://www.w3.org/XML/1998/namespace", "xml"),
1968 space_behaviour = attrs.get('{http://www.w3.org/XML/1998/namespace}space')