Home | History | Annotate | Download | only in etree

Lines Matching defs:XML

5 # light-weight XML support for Python 2.3 and later.
71 "XML",
96 # structure, and convert it from and to XML.
536 # element that will be serialized as an XML comment by the standard
553 # that will be serialized as an XML processing instruction by the standard
599 # standard XML.
603 # tree is initialized with the contents of this XML file.
634 # Loads an external XML document into this element tree.
774 # Writes the element tree to a file, as XML.
780 # @keyparam xml_declaration Controls if an XML declaration should
783 # @keyparam default_namespace Sets the default XML namespace (for "xmlns").
784 # @keyparam method Optional output method ("xml", "html", "text" or
785 # "c14n"; default is "xml").
795 method = "xml"
811 if method == "xml":
812 write("<?xml version='1.0' encoding='%s'?>\n" % encoding)
855 if prefix != "xml":
863 # FIXME: can this be handled in XML 1.0?
1011 "xml": _serialize_xml,
1039 "http://www.w3.org/XML/1998/namespace": "xml",
1043 # xml schema
1110 # Generates a string representation of an XML element, including all
1115 # @keyparam method Optional output method ("xml", "html", "text" or
1116 # "c14n"; default is "xml").
1117 # @return An encoded string containing the XML data.
1130 # Generates a string representation of an XML element, including all
1135 # @keyparam method Optional output method ("xml", "html", "text" or
1136 # "c14n"; default is "xml").
1137 # @return A sequence object containing the XML data.
1156 # version, it's written as an ordinary XML file.
1173 # Parses an XML document into an element tree.
1175 # @param source A filename or file object containing XML data.
1186 # Parses an XML document into an element tree incrementally, and reports
1189 # @param source A filename or file object containing XML data.
1288 # Parses an XML document from a string constant. This function can
1289 # be used to embed "XML literals" in Python code.
1291 # @param source A string containing XML data.
1297 def XML(text, parser=None):
1304 # Parses an XML document from a string constant, and also returns
1307 # @param source A string containing XML data.
1326 # Parses an XML document from a string constant. Same as {@link #XML}.
1329 # @param source A string containing XML data.
1333 fromstring = XML
1336 # Parses an XML document from a sequence of string fragments.
1338 # @param sequence A list or other sequence containing XML data fragments.
1359 # You can use this class to build an element structure using a custom XML
1360 # parser, or a parser for some other XML-like format.
1443 XML source data, based on the
1451 # the encoding specified in the XML file.
1459 from xml.parsers import expat
1574 from xml.parsers import expat