Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/test_minidom.cpython-311.opt-1.pyc |
�
�Ke= � � � d dl Z d dlZd dlZd dlmZ d dlZd dlZd dlZd dlm Z m
Z
mZmZm
Z
d dlmZ d dlmZ ej dd�� � Zd Zdd
�Zd� Zd� Z G d
� dej � � Zedk r ej � � dS dS )� N)�support)�parse�Attr�Node�Document�parseString)�getDOMImplementation)�
ExpatErrorztest.xml�xmltestdata)�subdira <?xml version='1.0' encoding='us-ascii'?>
<!DOCTYPE doc PUBLIC 'http://xml.python.org/public' 'http://xml.python.org/system' [
<!ELEMENT e EMPTY>
<!ENTITY ent SYSTEM 'http://xml.python.org/entity'>
]><doc attr='value'> text
<?pi sample?> <!-- comment --> <e/> </doc>c �H � t � � � d d| � � S )N�doc)r �createDocument)�doctypes �;/usr/local/apps/python3/lib/python3.11/test/test_minidom.py�create_doc_without_doctyper s � ��!�!�0�0��u�g�F�F�F� c � � t � � � dd d � � } g | j _ g | j _ t
j j � dd d� � }| j j � |� � t
j j �
dd dd� � }d|_ d|_ d|_
| j j � |� � | S ) Nr zmy-notationz"http://xml.python.org/notations/myz my-entityz!http://xml.python.org/entities/myz1.0�utf-8�us-ascii)r �createDocumentType�entities�_seq� notations�xml�dom�minidom�Notation�append�Entity�version�encoding�actualEncoding)r �notation�entitys r �create_nonempty_doctyper&