Hacked By AnonymousFox
3
\�2 � @ 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�Z[G 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 �*/usr/lib64/python3.6/xml/dom/xmlbuilder.pyr
s( r c 5 @ sV e Zd ZdZdZdZdZdZdZdZ eeee fZ
dd� Zdd � Zd
d� Z
dd
� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd4d5gd6d7gd8d9gd:d;gd<d=gd>d?gd@dAgdBdCgdDdEgdFdGgdHdIdJgdKdLgdMdNgdOdPgdQdRgdSdTgdUdVgdWdXgdYdZgd[d\gd]g d^d_d`dadbdcdddedfdgg dhdigdjdkgdldmgiZd*d+� Zd,d-� Zd.d/� Zd0d1� Zd2d3� ZdS )nr 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� | j |�rv|rdpd}y| jt|�|f }W n& tk
rR tjjd|f ��Y q�X x4|D ]\}}t| j||� qZW ntjj dt
|� ��d S )Nr r zunsupported feature: %rzunknown feature: )�supportsFeature� _settings�_name_xform�KeyError�xml�dom�NotSupportedErr�setattrr"