| Server IP : 121.121.20.254 / Your IP : 216.73.217.141 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/dom/__pycache__/ |
Upload File : |
R
>lqjP c �d � Q s ] PHs] PHs] QHGsGsGsGs ] QH"3 ] QH$G
s
Gs \O O O \O O O 1s Q Q\O O 2 s
\ \
QQQ5 \ \
Q Q
Q5 \ \
QQQ5 Q
sQ sQ sQ s Q Q\
2 s Q Q\
2 s\ \QQQ5 \ \QQQ5 \ \QQQ5 Q Q\2 s\ \QQQ5 \s Q Q\2 s\ PP2 s Q Q!\
2 s\ \Q"Q#Q5 \ \QQ$Q5 Q% s Q& Q'2 s Q( Q)\\
2 s Q* Q+\\
2 s!\ \!QQ,Q5 Q- Q.\!2 s"\ \"Q/Q0Q5 \ \"Q1Q2Q5 Q3 s#Q4 s$ Q5 Q6\!2 s% Q7 Q8\"2 s& Q9 Q:\2 s'\ \'QQ;Q5 Q< Q=2 s( Q> Q?\(\\
2 s) Q@ QA\(\
2 s* QB QC\(\\
2 s+ QD QE\
2 s, QF QG\2 s-QH s. QI QJ\
\2 s/\ \/QKQLQ5 QM s0QN s1QO s2QSQP ks3QTQQ ks4QTQR ks5P! )Uac 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
)�EMPTY_NAMESPACE�EMPTY_PREFIX�XMLNS_NAMESPACE�domreg��*)�DOMImplementationLS�
DocumentLSc �� ` � \ sQ s]"s n PsPsPsPsPs\ s
Q sQQ ksQQ ks
Q sQ sQ sQ sQ sQ sQ
sQ sQ sQ
sQ sQ sQ sQ sQ sQ sQ sQ sQ s Q s!Qs"U s#P! )�Nodec � � P ! �T� ��selfs &�$C:\Python315\\Lib\xml\dom\minidom.py�__bool__�
Node.__bool__+ � � �� c �* � U O PPV2 ! �� )�toprettyxml)r �encoding�
standalones &&&r �toxml�
Node.toxml. s � �����B��=�=r c � � Ue [ O 2 oL-[ O [ O 2 UQQQ5 oU O [
O 6X c U O UPVV42 LU O UPV2 Ue UO 2 ! UO 2 O 2 ! )N�xmlcharrefreplace�
)r �errors�newline)
�io�StringIO�
TextIOWrapper�BytesIO�nodeTyper
�
DOCUMENT_NODE�writexml�getvalue�detach)r �indent�newlr r �writers &&&&& r r �Node.toprettyxml1 s� � ����[�[�]�F��%�%�b�j�j�l�/7�-@�.2�4�F� �=�=�D�.�.�.��M�M�&�"�f�H�I��M�M�&�"�f�3����?�?�$�$��=�=�?�+�+�-�-r c �. � [ U O 2 ! �N)�bool�
childNodesr s &r �
hasChildNodes�Node.hasChildNodesD s � ��D�O�O�$�$r c � � U O ! r0 �r2 r s &r �_get_childNodes�Node._get_childNodesG � � ����r c �R � U O % c U O ] * ! P! �� r6 r s &r �_get_firstChild�Node._get_firstChildJ s � ��?�?�?��?�?�1�%�%� r c �R � U O % c U O P* ! P! �� r6 r s &r �_get_lastChild�Node._get_lastChildN s � ��?�?�?��?�?�2�&�&� r c �\ � UO U O 6X c1 [ UO 2 F D oU O V22 J U! UO U O
7 c9 [ O O [ U2 8 Q [ U 2 8 02 gUO d UO O U2 Ue U O U2 U! U O O U2 oUO [ 7 c [# U 2 U O O% VA2 V!m Vm U% c( U O U]*
* oVm VQm LPUm Vm
U! [ c [ O O 2 gh 9 h�� cannot be child of )r&