%PDF- %PDF-
Direktori : /lib/python3.12/xml/etree/__pycache__/ |
Current File : //lib/python3.12/xml/etree/__pycache__/ElementTree.cpython-312.pyc |
� ���f!! � �� � d Z g d�ZdZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlmZ G d� de � Zd � Z G d � d� Zi fd�ZdCd �ZdCd�ZeZ G d� d� Z G d� d� Ze j. d� � ZdCd�Zd� Zh d�Zd� Zd� Zeeed�Zd� Zdddddd d!d"�Z e e_ d#� Z!d$� Z"d%� Z#d&� Z$dDddd'd(�d)�Z% G d*� d+ejL � Z'dDddd'd(�d,�Z(d-� Z)dEd.�Z*dCd/�Z+dDd0�Z, G d1� d2� Z-dCd3�Z.dCd4�Z/e.Z0dCd5�Z1 G d6� d7� Z2 G d8� d9� Z3dCddd:�d;�Z4 ejj d<ejl � jn Z8 G d=� d>� Z9d?� Z:d@� Z; eZ<ddAl=� ddBl=m>Z> e>ee� y# e?$ r Y yw xY w)Fa 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. )�Comment�dump�Element�ElementTree� fromstring�fromstringlist�indent� iselement� iterparse�parse� ParseError�PI�ProcessingInstruction�QName� SubElement�tostring�tostringlist�TreeBuilder�VERSION�XML�XMLID� XMLParser� XMLPullParser�register_namespace�canonicalize�C14NWriterTargetz1.3.0� N� )�ElementPathc � � e Zd ZdZy)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 N)�__name__� __module__�__qualname__�__doc__� � �,/usr/lib/python3.12/xml/etree/ElementTree.pyr r k s � �� r% r c � � t | d� S )z2Return True if *element* appears to be an Element.�tag)�hasattr)�elements r&