AlkantarClanX12
Current Path : /opt/alt/python311/lib64/python3.11/xml/sax/__pycache__/ |
Current File : //opt/alt/python311/lib64/python3.11/xml/sax/__pycache__/xmlreader.cpython-311.opt-1.pyc |
� c��f�1 � �� � d Z ddlmZ ddlmZmZ G d� d� � Z G d� de� � Z G d� d � � Z G d � d� � Z G d� d � � Z G d� de � � Zd� Ze dk r e� � dS dS )z]An XML Reader is the SAX 2 name for an XML parser. XML Parsers should be based on this code. � )�handler)�SAXNotSupportedException�SAXNotRecognizedExceptionc �l � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� Zd� Zd� ZdS )� XMLReadera% Interface for reading an XML document using callbacks. XMLReader is the interface that an XML parser's SAX2 driver must implement. This interface allows an application to set and query features and properties in the parser, to register event handlers for document processing, and to initiate a document parse. All SAX interfaces are assumed to be synchronous: the parse methods must not return until parsing is complete, and readers must wait for an event-handler callback to return before reporting the next event.c �� � t j � � | _ t j � � | _ t j � � | _ t j � � | _ d S �N) r �ContentHandler� _cont_handler� DTDHandler�_dtd_handler�EntityResolver�_ent_handler�ErrorHandler�_err_handler��selfs �8/opt/alt/python311/lib64/python3.11/xml/sax/xmlreader.py�__init__zXMLReader.__init__ sL � �$�3�5�5���#�.�0�0���#�2�4�4���#�0�2�2����� c � � t d� � �)zAParse an XML document from a system identifier or an InputSource.� This method must be implemented!��NotImplementedError�r �sources r �parsezXMLReader.parse s � �!�"D�E�E�Er c � � | j S )z#Returns the current ContentHandler.�r r s r �getContentHandlerzXMLReader.getContentHandler"