python (3.12.0)
͑eP1 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 yy)z]An XML Reader is the SAX 2 name for an XML parser. XML Parsers
should be based on this code. )handler)SAXNotSupportedExceptionSAXNotRecognizedExceptionc j e Zd ZdZd Zd Zd Zd Zd Zd Z d Z
d Zd
Zd Z
d Zd
Zd Zd Zd Zy) 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 | _ y N) r ContentHandler
_cont_handler
DTDHandler_dtd_handlerEntityResolver_ent_handlerErrorHandler_err_handlerselfs E/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/xml/sax/xmlreader.py__init__zXMLReader.__init__ sF $335#..0#224#002 c t d )zAParse an XML document from a system identifier or an InputSource. This method must be implemented!NotImplementedErrorr sources r parsezXMLReader.parse s !"DEEr c | j S )z#Returns the current ContentHandler.r r s r getContentHandlerzXMLReader.getContentHandler"