관리-도구
편집 파일: xmlbuilder.cpython-37.opt-1.pyc
B � fs0 � @ s� d Z ddlZddlZddlZddlmZ dddgZG dd� d�ZG d d� d�Z d d� Z G dd� de�ZG d d� de�Z G dd� d�Z[G dd� d�ZG dd� d�ZdS )z4Implementation of the DOM Level 3 'LS-Load' feature.� N)� NodeFilter� DOMBuilder�DOMEntityResolver�DOMInputSourcec @ s\ e Zd ZdZdZdZdZdZdZdZ dZ dZdZdZ dZdZdZdZdZdZdZdZdZdS )�Optionsz�Features object that has variables set for each DOMBuilder feature. The DOMBuilder class uses an instance of this class to pass settings to the ExpatBuilder class. � TFN)�__name__� __module__�__qualname__�__doc__� namespaces�namespace_declarations� validation�external_parameter_entities�external_general_entitiesZexternal_dtd_subset�validate_if_schemaZvalidate�datatype_normalization�create_entity_ref_nodes�entities�whitespace_in_element_content�cdata_sections�comments�charset_overrides_xml_encoding�infoset�supported_mediatypes_only�errorHandler�filter� r r �7/opt/alt/python37/lib64/python3.7/xml/dom/xmlbuilder.pyr s( r c @ s& e Zd ZdZdZdZdZdZdZdZ eeee fZ dd� Zdd � Zd d� Z dd � Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdgdgdgdgdgdgd gd!gd"gd#gd"d$gd%gd&gd'gd(gd)gd*gd+gd,gd-gg dd!d"d$d(d.d'd+d-g d/gd0gd1gd2�Zd3d4� Zd5d6� Zd7d8� Zd9d:� Zd;d<� ZdS )=r Nr � � � c C s t � | _d S )N)r �_options)�selfr r r �__init__: s zDOMBuilder.__init__c C s | j S )N)�entityResolver)r# r r r �_get_entityResolver= s zDOMBuilder._get_entityResolverc C s || _ d S )N)r% )r# r% r r r �_set_entityResolver? s zDOMBuilder._set_entityResolverc C s | j S )N)r )r# r r r �_get_errorHandlerB s zDOMBuilder._get_errorHandlerc C s || _ d S )N)r )r# r r r r �_set_errorHandlerD s zDOMBuilder._set_errorHandlerc C s | j S )N)r )r# r r r �_get_filterG s zDOMBuilder._get_filterc C s || _ d S )N)r )r# r r r r �_set_filterI s zDOMBuilder._set_filterc C s� | � |�rx|rdpd}y| jt|�|f }W n( tk rT tj�d|f �d �Y q�X x4|D ]\}}t| j||� q\W ntj� dt |� ��d S )Nr r zunsupported feature: %rzunknown feature: )�supportsFeature� _settings�_name_xform�KeyError�xml�dom�NotSupportedErr�setattrr"