File: //home/arjun/projects/env/lib/python3.10/site-packages/docx/oxml/__pycache__/parser.cpython-310.pyc
o
$we� � @ s� d Z ddlmZ ddlmZmZmZmZ ddlm Z ddl
mZmZ er*ddl
mZ e �� Ze jddd �Ze�e� ddd�Zddd�Z dd dd�ZdS )!zXML parser for python-docx.� )�annotations)�
TYPE_CHECKING�Dict�Type�cast)�etree)�NamespacePrefixedTag�nsmap)�BaseOxmlElementTF)�remove_blank_text�resolve_entities�xml�str�return�'BaseOxmlElement'c C s t dt�| t��S )z�Root lxml element obtained by parsing XML character string `xml`.
The custom parser is used, so custom element classes are produced for elements in
`xml` that have them.
r
)r r �
fromstring�oxml_parser)r
� r �I/home/arjun/projects/env/lib/python3.10/site-packages/docx/oxml/parser.py� parse_xml s r �tag�cls�Type['BaseOxmlElement']c C s( | � d�\}}t�t| �}|||<