| Server IP : 121.121.20.254 / Your IP : 216.73.216.146 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python315/Lib/xml/etree/__pycache__/ |
Upload File : |
R
>lqj�0 c �: � Q s , QFNs] PHs] PHs] PHs] PHs] PHs] PHs] PH s] PH$s ]Q H(Gs Q
Q\2 s
Q s Q Q2 s- 1Q
ksQGQ ksQGQ ks\s Q Q2 s Q Q2 s\O, Q 2 sQGQ ksQ s. QHls. QIlsQ sQ sQ\Q\Q\-sQ sQQQQQQQQ Q!Q"Q#Q$Q%Q&-s \ \m Q' s!Q( s"Q) s#Q* s$QJQ+PQ,PQ-P -Q. kks% Q/ Q0\OL 2 s'QJQ+PQ,PQ-P -Q1 kks(Q2 s)QKQ3 ks*QGQ4 ks+QJQ5 ks, Q6 Q2 s-QGQ7 ks.QGQ8 ks/\.s0QGQ9 ks1 Q: Q2 s2 Q; Q2 s3QGQ<PQ=P-Q> kks4\Oj Q?\Ol 2 On s8 Q@ Q2 s9QA s:QB s; \s<] QCH�3 ] QDH�G>s> \> \\2 QE s@P! \? c Kh 9 h)La� 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.
�Element�ElementTree�
ParseError�QName�TreeBuilder� XMLParser�
XMLPullParser�C14NWriterTarget)�ElementPathc � � \ sQ s]hsQsQsP! )r z�An 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
� )�__name__�
__module__�__qualname__�__firstlineno__�__doc__�__static_attributes__r � �*C:\Python315\\Lib\xml\etree\ElementTree.pyr r h s � �� r c � � [ U Q2 ! )z2Return True if *element* appears to be an Element.�tag)�hasattr)�elements &r � iselementr v s � ��7�E�"�"r c �� ` � \ sQ s]{s n QsPs Ps Ps Ps - 1Q ks Q s
Q sQ sQ s
Q sQ sQ sQ
sQ sQ sQ
sQ sQ sQQ ksQQ ksQQ ksQQ ksQ sQQ ksQ sQ sQ sQQ ks Q s!Qs"U s#P! )r a8 An XML element.
This class is the reference implementation of the Element interface.
An element's length is its number of subelements. That means if you
want to check if an element is truly empty, you should check BOTH
its length AND its text attribute.
The element tag, attribute names, and attribute values can be either
bytes or strings.
*tag* is the element name. *attrib* is an optional dictionary containing
element attributes. *extra* are additional element attributes given as
keyword arguments.
Example form:
<tag attrib>text<child/>...</tag>tail
c � � [ U[ [ 12 % f$ [ Q UO O
8 02 gVm - UAUAU m , U m P! )z'attrib must be dict or frozendict, not ) �
isinstance�dict�
frozendict� TypeError� __class__r r �attrib� _children)�selfr r �extras ""&,r �__init__�Element.__init__� sR � ��&�4��"4�5�5��� � �)�)�,� -�
-���)��)�5�)�����r c �j � Q U O O U O [ U 2 1* ! )z<%s %r at %#x>)r r r �id�r"