*j$ S r / SQrSrSSKrSSKrSSKrSSKrSSKrSSKrSSK r SSK r SSKJr " S S\ 5 rS r " S S5 r0 4S jrSDS jrSDS jr\r " S S5 r " S S5 r\ R. S 5 rSDS jrS r1 Skr1 SkrS rS r\\\S.rS r SSSSS S!S"S#.r!\!\ l! S$ r"S% r#S& r$S' r%SESSS(S).S* jjr& " S+ S,\RN 5 r(SESSS(S).S- jjr)S. r*SFS/ jr+SDS0 jr,SES1 jr- " S2 S35 r.SDS4 jr/SDS5 jr0\/r1SDS6 jr2 " S7 S85 r3 " S9 S:5 r4SDSSS;.S< jjr5\Rl " S=\Rn 5 Rp r9 " S> S?5 r:S@ r;SA r< \r=SSBK>7 SSCK>J?r? \?" \\5 g! \@ a gf = f)Ga Lightweight XML support for Python. XML is an inherently hierarchical data format, and the most natural way to represent it is with a tree. This module has two classes for this purpose: 1. ElementTree represents the whole XML document as a tree and 2. Element represents a single node in this tree. Interactions with the whole document (reading and writing to/from files) are usually done on the ElementTree level. Interactions with a single XML element and its sub-elements are done on the Element level. Element is a flexible container object designed to store hierarchical data structures in memory. It can be described as a cross between a list and a dictionary. Each Element has a number of properties associated with it: 'tag' - a string containing the element's name. 'attributes' - a Python dictionary storing the element's attributes. 'text' - a string containing the element's text content. 'tail' - an optional string containing text after the element's end tag. And a number of child elements stored in a Python sequence. To create an element instance, use the Element constructor, or the SubElement factory function. You can also use the ElementTree class to wrap an element structure and convert it to and from XML. )CommentdumpElementElementTree fromstringfromstringlistindent iselement iterparseparse ParseErrorPIProcessingInstructionQName SubElementtostringtostringlistTreeBuilderVERSIONXMLXMLID XMLParser XMLPullParserregister_namespacecanonicalizeC14NWriterTargetz1.3.0 N )ElementPathc \ rS rSrSrSrg)r k zAn error when parsing an XML document. In addition to its exception value, a ParseError contains two extra attributes: 'code' - the specific exception code 'position' - the line and column of the error N)__name__ __module____qualname____firstlineno____doc____static_attributes__r!