Your IP : 13.59.91.59


Current Path : /opt/alt/python311/lib64/python3.11/xml/dom/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/xml/dom/__pycache__/__init__.cpython-311.pyc

�

c��f���~�dZGd�d��ZdZdZdZdZdZdZd	Zd
Z	dZ
dZd
ZdZ
dZdZdZdZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�d e��ZGd!�d"e��ZGd#�d$e��ZGd%�d&e��ZGd'�d(e��ZGd)�d*e��ZGd+�d,e��ZGd-�d.e��Z Gd/�d0e��Z!Gd1�d2e��Z"Gd3�d4e��Z#Gd5�d6��Z$d7Z%d8Z&d9Z'd:Z(d:Z)dd;l*m+Z+m,Z,d:S)<a
W3C Document Object Model implementation for Python.

The Python mapping of the Document Object Model is documented in the
Python Library Reference in the section on the xml.dom package.

This package contains the following modules:

minidom -- A simple implementation of the Level 1 DOM with namespace
           support added (based on the Level 2 specification) and other
           minor Level 2 functionality.

pulldom -- DOM builder supporting on-demand tree-building for selected
           subtrees of the document.

c�F�eZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdS)�Nodez$Class giving the NodeType constants.����������	�
��N)�__name__�
__module__�__qualname__�__doc__�	__slots__�ELEMENT_NODE�ATTRIBUTE_NODE�	TEXT_NODE�CDATA_SECTION_NODE�ENTITY_REFERENCE_NODE�ENTITY_NODE�PROCESSING_INSTRUCTION_NODE�COMMENT_NODE�
DOCUMENT_NODE�DOCUMENT_TYPE_NODE�DOCUMENT_FRAGMENT_NODE�
NOTATION_NODEr��7/opt/alt/python311/lib64/python3.11/xml/dom/__init__.pyrrs\������.�.��I�#$�L�"#�N�"#�I�"#��"#��"#�K�"#��"#�L�"#�M�"$��"$��"$�M�M�Mr"rrrrrr	r
rrr
rrr�
���c��eZdZdZd�Zd�ZdS)�DOMExceptionzmAbstract base class for DOM exceptions.
    Exceptions with specific codes are specializations of this class.c�j�|jturtd���tj|g|�Ri|��dS)Nz0DOMException should not be instantiated directly)�	__class__r)�RuntimeError�	Exception�__init__)�self�args�kws   r#r.zDOMException.__init__BsN���>�\�)�)��B�D�D�
D���4�-�$�-�-�-�"�-�-�-�-�-r"c��|jS)N)�code)r/s r#�	_get_codezDOMException._get_codeHs
���y�r"N)rrrrr.r4rr"r#r)r)>s>������I�I�.�.�.�����r"r)c��eZdZeZdS)�IndexSizeErrN)rrr�INDEX_SIZE_ERRr3rr"r#r6r6L��������D�D�Dr"r6c��eZdZeZdS)�DomstringSizeErrN)rrr�DOMSTRING_SIZE_ERRr3rr"r#r:r:O��������D�D�Dr"r:c��eZdZeZdS)�HierarchyRequestErrN)rrr�HIERARCHY_REQUEST_ERRr3rr"r#r>r>R������� �D�D�Dr"r>c��eZdZeZdS)�WrongDocumentErrN)rrr�WRONG_DOCUMENT_ERRr3rr"r#rBrBUr<r"rBc��eZdZeZdS)�InvalidCharacterErrN)rrr�INVALID_CHARACTER_ERRr3rr"r#rErEXr@r"rEc��eZdZeZdS)�NoDataAllowedErrN)rrr�NO_DATA_ALLOWED_ERRr3rr"r#rHrH[��������D�D�Dr"rHc��eZdZeZdS)�NoModificationAllowedErrN)rrr�NO_MODIFICATION_ALLOWED_ERRr3rr"r#rLrL^s������&�D�D�Dr"rLc��eZdZeZdS)�NotFoundErrN)rrr�
NOT_FOUND_ERRr3rr"r#rOrOa��������D�D�Dr"rOc��eZdZeZdS)�NotSupportedErrN)rrr�NOT_SUPPORTED_ERRr3rr"r#rSrSd��������D�D�Dr"rSc��eZdZeZdS)�InuseAttributeErrN)rrr�INUSE_ATTRIBUTE_ERRr3rr"r#rWrWgrJr"rWc��eZdZeZdS)�InvalidStateErrN)rrr�INVALID_STATE_ERRr3rr"r#rZrZjrUr"rZc��eZdZeZdS)�	SyntaxErrN)rrr�
SYNTAX_ERRr3rr"r#r]r]ms�������D�D�Dr"r]c��eZdZeZdS)�InvalidModificationErrN)rrr�INVALID_MODIFICATION_ERRr3rr"r#r`r`ps������#�D�D�Dr"r`c��eZdZeZdS)�NamespaceErrN)rrr�
NAMESPACE_ERRr3rr"r#rcrcsrQr"rcc��eZdZeZdS)�InvalidAccessErrN)rrr�INVALID_ACCESS_ERRr3rr"r#rfrfvr<r"rfc��eZdZeZdS)�
ValidationErrN)rrr�VALIDATION_ERRr3rr"r#ririyr8r"ric�"�eZdZdZdZdZdZdZdS)�UserDataHandlerzBClass giving the operation constants for UserDataHandler.handle().rrrrN)rrrr�NODE_CLONED�
NODE_IMPORTED�NODE_DELETED�NODE_RENAMEDrr"r#rlrl|s*������L�L��K��M��L��L�L�Lr"rlz$http://www.w3.org/XML/1998/namespacezhttp://www.w3.org/2000/xmlns/zhttp://www.w3.org/1999/xhtmlN)�getDOMImplementation�registerDOMImplementation)-rrr7r;r?rCrFrIrMrPrTrXr[r^rardrgrjr-r)r6r:r>rBrErHrLrOrSrWrZr]r`rcrfrirl�
XML_NAMESPACE�XMLNS_NAMESPACE�XHTML_NAMESPACE�EMPTY_NAMESPACE�EMPTY_PREFIX�domregrqrrrr"r#�<module>rys�����"%�%�%�%�%�%�%�%�4"#��!"��!"��!"��!"��!"��!"��!"�
�!"��!#��!#��!#�
�!#��!#�
�!#��!#�������9���������<���������|����!�!�!�!�!�,�!�!�!������|����!�!�!�!�!�,�!�!�!������|����'�'�'�'�'�|�'�'�'������,���������l������������������l�������������$�$�$�$�$�\�$�$�$������<���������|���������L������������7�
�1��0������C�C�C�C�C�C�C�C�C�Cr"

?>