/
proc
/
self
/
root
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python3
/
dist-packages
/
pysimplesoap
/
__pycache__
/
Upload File
HOME
� �/$Z�W � �� � d Z ddlmZ ddlZej dk reZeZddlZddl Z ddl Z ddlZddl mZmZmZmZ ddlmZmZmZmZmZmZmZ ej e� � Z G d� d e� � ZdS ) zSimple XML manipulation� )�unicode_literalsN�3� )� __author__� __copyright__�__license__�__version__)�TYPE_MAP�TYPE_MARSHAL_FN�TYPE_UNMARSHAL_FN�REVERSE_TYPE_MAP�Struct�Date�Decimalc �H � e Zd ZdZdddddi dfd�Zd(d�Zd� Zd� Zd � Zd)d �Z e j dk rd� Znd � Zd� Z d� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d*d�Zd� Zd� Zd� Zd� Zd� Zd� Zd� Ze j dk reZnd� Zd � Zd!� Z e!d"� � � Z"d+d#�Z#d$� Z$ d,d%�Z%d&� Z&d(d'�Z'dS )-�SimpleXMLElementz#Simple XML manipulation (simil PHP)NFc � � || _ d� |� � � � � }t j d|z � � | _ || _ || _ || _ |�_ t j j � |� � | _ n # t � |� � � xY w| j j g| _ dS || _ || _ dS )z� :param namespaces_map: How to map our namespace prefix to that given by the client; {prefix: received_prefix} �|z ^(%s):.*$N)�!_SimpleXMLElement__namespaces_map�join�keys�re�compile�_SimpleXMLElement__ns_rx�_SimpleXMLElement__ns�_SimpleXMLElement__prefix�_SimpleXMLElement__jetty�xml�dom�minidom�parseString�_SimpleXMLElement__document�log�error�documentElement�_SimpleXMLElement__elements) �self�text�elements�document� namespace�prefix�namespaces_map�jetty�_rxs �8/usr/lib/python3/dist-packages/pysimplesoap/simplexml.py�__init__zSimpleXMLElement.__init__'