Mini Shell
a
�DOg�" � @ s� d Z g d�ZdZddlZddlZddlZddlZddlZddlZddl Z ddl
mZ G dd� de�Z
d d
� ZG dd� d�Zi fd
d�Zd^dd�Zd_dd�ZeZG dd� d�ZG dd� d�Ze jdd� �Zd`dd�Zdd� ZdZzee�ZW n e� y� Y n0 dd� Zd d!� Zeeed"�Zd#d$� Z d%d&d'd(d)d*d+d,�Z!e!e _!d-d.� Z"d/d0� Z#d1d2� Z$d3d4� Z%daddd5d6�d7d8�Z&G d9d:� d:ej'�Z(dbddd5d6�d;d<�Z)d=d>� Z*dcd@dA�Z+dddBdC�Z,dedDdE�Z-G dFdG� dG�Z.dfdHdI�Z/dgdJdK�Z0e/Z1dhdLdM�Z2G dNdO� dO�Z3G dPdQ� dQ�Z4didddR�dSdT�Z5e�6dUej7�j8Z9G dVdW� dW�Z:dXdY� Z;dZd[� Z<zeZ=dd\l>T dd]l>m?Z? W n e@�yz Y n0 e?ee� dS )ja 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 @ s e Zd ZdZdS )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__� r"