File "xmlreader.cpython-36.pyc"
Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python36/lib64/python3.6/xml/sax/__pycache__/xmlreader.cpython-36.pyc
File size: 16.54 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit
3
f1 @ s d Z ddlmZ ddlmZmZ G dd dZG dd deZG dd d ZG d
d dZ G dd
d
Z
G dd de
Zdd Ze
dkre dS )z]An XML Reader is the SAX 2 name for an XML parser. XML Parsers
should be based on this code. )handler)SAXNotSupportedExceptionSAXNotRecognizedExceptionc @ s e Zd ZdZdd Zdd Zdd Zdd Zd
d Zdd
Z dd Z
dd Zdd Zdd Z
dd Zdd Zdd Zdd Zdd Zd S )! 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 C s, t j | _t j | _t j | _t j | _d S )N) r ZContentHandler
_cont_handlerZ
DTDHandler_dtd_handlerZEntityResolver_ent_handlerZErrorHandler_err_handler)self r 6/opt/alt/python36/lib64/python3.6/xml/sax/xmlreader.py__init__ s
zXMLReader.__init__c C s t ddS )zAParse an XML document from a system identifier or an InputSource.z This method must be implemented!N)NotImplementedError)r
sourcer r r parse s zXMLReader.parsec C s | j S )z#Returns the current ContentHandler.)r )r
r r r getContentHandler"