*j B S r SSKJr SSKJrJr SSKJrJrJ r J r Jr \" 5 4S jr\" 5 4S jr S/rSr\( a SS KrSS KrSS Kr\R( R* ( d. S \R, ; a \R, S R/ S5 rCCSS jrS rg )a Simple API for XML (SAX) implementation for Python. This module provides an implementation of the SAX 2 interface; information about the Java version of the interface can be found at http://www.megginson.com/SAX/. The Python version of the interface is documented at <...>. This package contains the following modules: handler -- Base classes and constants which define the SAX 2 API for the 'client-side' of SAX for Python. saxutils -- Implementation of the convenience classes commonly used to work with SAX. xmlreader -- Base classes and constants which define the SAX 2 API for the parsers used with SAX for Python. expatreader -- Driver that allows use of the Expat parser with SAX. )InputSource)ContentHandlerErrorHandler)SAXExceptionSAXNotRecognizedExceptionSAXParseExceptionSAXNotSupportedExceptionSAXReaderNotAvailablec ~ [ 5 nUR U5 UR U5 UR U 5 g )N)make_parsersetContentHandlersetErrorHandlerparse)sourcehandlererrorHandlerparsers 7/opt/alt/python313/lib64/python3.13/xml/sax/__init__.pyr r s1 ]F W% <( LL c ` SS K nUc [ 5 n[ 5 nUR U5 UR U5 [ 5 n[ U [ 5 ( a! UR UR U 5 5 O UR UR U 5 5 UR U5 g )N ) ior r r r r isinstancestrsetCharacterStreamStringIO setByteStreamBytesIOr )stringr r r r inpsrcs r parseStringr! # s #~ ]F W% <( ]F!!"++f"56RZZ/0 LLr zxml.sax.expatreaderr N PY_SAX_PARSER,c [ U 5 [ - H n [ U5 s $ [ SS5 e! [ a SSKnXR ; a e M@ [ a ML f = f)a# Creates and returns a SAX parser. Creates the first parser it is able to instantiate of the ones given in the iterable created by chaining parser_list and default_parser_list. The iterables must contain the names of Python modules containing both a SAX parser and a create_parser function.r NzNo parsers found)listdefault_parser_list_create_parserImportErrorsysmodulesr )parser_listparser_namer) s r r r B sp K(+>> !+.. ? 2D 99 kk) * % s 2A A A c @ [ U 0 0 S/5 nUR 5 $ )N create_parser) __import__r. )r, drv_modules r r' r' \ s$ K2.?@J##%%r ) )__doc__ xmlreaderr r r r _exceptionsr r r r r r r! r&