§ !A?hŒ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 ú>/opt/alt/python-internal/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" s € àÔ!Ð!r c ó — || _ dS )z:Registers a new object to receive document content events.Nr ©r r s r ÚsetContentHandlerzXMLReader.setContentHandler&