Current Path: > > opt > alt > python310 > lib64 > python3.10 > xml > dom > __pycache__
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
NodeFilter.cpython-310.opt-1.pyc | File | 984 bytes | June 18 2025 15:55:27. | |
NodeFilter.cpython-310.opt-2.pyc | File | 895 bytes | June 18 2025 15:55:30. | |
NodeFilter.cpython-310.pyc | File | 984 bytes | June 18 2025 15:55:27. | |
__init__.cpython-310.opt-1.pyc | File | 5293 bytes | June 18 2025 15:55:27. | |
__init__.cpython-310.opt-2.pyc | File | 4514 bytes | June 18 2025 15:55:30. | |
__init__.cpython-310.pyc | File | 5293 bytes | June 18 2025 15:55:27. | |
domreg.cpython-310.opt-1.pyc | File | 2875 bytes | June 18 2025 15:55:27. | |
domreg.cpython-310.opt-2.pyc | File | 1689 bytes | June 18 2025 15:55:30. | |
domreg.cpython-310.pyc | File | 2875 bytes | June 18 2025 15:55:27. | |
expatbuilder.cpython-310.opt-1.pyc | File | 27038 bytes | June 18 2025 15:55:28. | |
expatbuilder.cpython-310.opt-2.pyc | File | 24610 bytes | June 18 2025 15:55:30. | |
expatbuilder.cpython-310.pyc | File | 27325 bytes | June 18 2025 15:55:27. | |
minicompat.cpython-310.opt-1.pyc | File | 2630 bytes | June 18 2025 15:55:29. | |
minicompat.cpython-310.opt-2.pyc | File | 2456 bytes | June 18 2025 15:55:30. | |
minicompat.cpython-310.pyc | File | 2706 bytes | June 18 2025 15:55:27. | |
minidom.cpython-310.opt-1.pyc | File | 55264 bytes | June 18 2025 15:55:29. | |
minidom.cpython-310.opt-2.pyc | File | 52825 bytes | June 18 2025 15:55:30. | |
minidom.cpython-310.pyc | File | 55345 bytes | June 18 2025 15:55:27. | |
pulldom.cpython-310.opt-1.pyc | File | 10570 bytes | June 18 2025 15:55:27. | |
pulldom.cpython-310.opt-2.pyc | File | 10150 bytes | June 18 2025 15:55:30. | |
pulldom.cpython-310.pyc | File | 10570 bytes | June 18 2025 15:55:27. | |
xmlbuilder.cpython-310.opt-1.pyc | File | 12303 bytes | June 18 2025 15:55:29. | |
xmlbuilder.cpython-310.opt-2.pyc | File | 11890 bytes | June 18 2025 15:55:30. | |
xmlbuilder.cpython-310.pyc | File | 12317 bytes | June 18 2025 15:55:27. |
o �=?h, � @ s� d Z ddlZddlZddlmZmZmZmZ ddlT ddl m Z mZ ejj jejj jfZG dd� dejj �Z ee dd d � ee ddd � ee d dd � dd� Zdd� Zdd� Zdd� Zdd� ZG dd� de �ZG dd� de �Zeeddd � eed dd � eed d!d � G d"d#� d#e�Zeed$d%d � eZG d&d'� d'e�Zedd�ZG d(d)� d)e �Zeed*d+d � eed d,d � d-d.� ZG d/d0� d0�Z G d1d2� d2e e �Z!G d3d4� d4e e �Z"ee"d$d5d � G d6d7� d7e"�Z#ee#d8d9d � ee#d:d;d � d<d=� Z$d>d?� Z%G d@dA� dAe"�Z&G dBdC� dCe#�Z'G dDdE� dEe�Z(ee(d$dFd � G dGdH� dH�Z)G dIdJ� dJe)e e �Z*G dKdL� dLe)e �Z+G dMdN� dNe)e e �Z,G dOdP� dPe �Z-G dQdR� dRe�Z.dSdT� Z/G dUdV� dVe e�Z0ee0dWdXd � dYdZ� Z1d[d\� Z2d]d^� Z3ded_d`�Z4dfdadb�Z5dfdcdd�Z6dS )gac Simple implementation of the Level 1 DOM. Namespaces and other minor Level 2 features are also supported. parse("foo.xml") parseString("<foo><bar/></foo>") Todo: ===== * convenience methods for getting elements and text. * more testing * bring some of the writer and linearizer code into conformance with this interface * SAX 2 namespaces � N)�EMPTY_NAMESPACE�EMPTY_PREFIX�XMLNS_NAMESPACE�domreg)�*)�DOMImplementationLS� DocumentLSc @ s� e Zd ZdZdZdZdZdZeZ dd� Z d2dd�Z d3dd �Zd d� Z dd � Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zd*d+� Zd,d-� Zd.d/� Zd0d1� Z dS )4�NodeNc C � dS )NT� ��selfr r �6/opt/alt/python310/lib64/python3.10/xml/dom/minidom.py�__bool__+ � z Node.__bool__c C s | � dd||�S �N� )�toprettyxml)r �encoding� standaloner r r �toxml. � z Node.toxml� � c C sv |d u r t �� }nt jt �� |ddd�}| jtjkr%| �|d||||� n| �|d||� |d u r5|�� S |� � �� S )N�xmlcharrefreplacer )r �errors�newliner ) �io�StringIO� TextIOWrapper�BytesIO�nodeTyper � DOCUMENT_NODE�writexml�getvalue�detach)r �indent�newlr r �writerr r r r 1 s �zNode.toprettyxmlc C � t | j�S �N)�bool� childNodesr r r r � hasChildNodesD � zNode.hasChildNodesc C � | j S r* �r, r r r r �_get_childNodesG � zNode._get_childNodesc C � | j r| j d S d S �Nr r0 r r r r �_get_firstChildJ � �zNode._get_firstChildc C r3 �N���r0 r r r r �_get_lastChildN r6 zNode._get_lastChildc C s |j | jkrt|j�D ]}| �||� q|S |j | jvr*tj�dt |�t | �f ��|j d ur5|j �|� |d u r@| �|� |S z| j� |�}W n tyT tj�� �w |j tv r^t| � | j�||� ||_||_|r{| j|d }||_||_nd |_| |_ |S )N�%s cannot be child of %s� )r! �DOCUMENT_FRAGMENT_NODE�tupler, �insertBefore�_child_node_types�xml�dom�HierarchyRequestErr�repr� parentNode�removeChild�appendChild�index� ValueError�NotFoundErr�_nodeTypes_with_children�_clear_id_cache�insert�nextSibling�previousSibling)r �newChild�refChild�crG �noder r r r>