ok
Direktori : /proc/thread-self/root/proc/thread-self/root/lib64/python2.7/xml/sax/ |
Current File : //proc/thread-self/root/proc/thread-self/root/lib64/python2.7/xml/sax/xmlreader.pyc |
� `цdc @ s� d Z d d l Z d d l m Z m Z d d d � � YZ d e f d � � YZ d d d � � YZ d d d � � YZ d d d � � YZ d e f d � � YZ d � Z e d k r� e � n d S( s] An XML Reader is the SAX 2 name for an XML parser. XML Parsers should be based on this code. i����N( t SAXNotSupportedExceptiont SAXNotRecognizedExceptiont XMLReaderc B s� e Z d Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s% 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( t handlert ContentHandlert _cont_handlert DTDHandlert _dtd_handlert EntityResolvert _ent_handlert ErrorHandlert _err_handler( t self( ( s) /usr/lib64/python2.7/xml/sax/xmlreader.pyt __init__ s c C s t d � � d S( sA Parse an XML document from a system identifier or an InputSource.s This method must be implemented!N( t NotImplementedError( R t source( ( s) /usr/lib64/python2.7/xml/sax/xmlreader.pyt parse s c C s | j S( s# Returns the current ContentHandler.( R ( R ( ( s) /usr/lib64/python2.7/xml/sax/xmlreader.pyt getContentHandler"