e>SrSrSSK7 SSKJrJr SSKJr SSKJrJr SSKJ r SSKJ r J r SS K J r \"\ S 5(d \"S S 5eSS KJrJrJr \R*r\R,rSS KrSS Kr\R2rCC"SS5r"SS\R85r"SS\R<\R85rSr \!S:XaySS K"r#\ "5r$\$RK\#RLR&RO55 \$RQ\#RLRS55 \$RUS5 g g !\a \"S S 5ef=f!\a SrNf=f)z] SAX driver for the pyexpat C module. This driver works with pyexpat.__version__ == '2.22'. z0.20)*)feature_validationfeature_namespaces)feature_namespace_prefixes)feature_external_gesfeature_external_pes)feature_string_interning)property_xml_stringproperty_interning_dict)expat ParserCreatezexpat not supportedN) xmlreadersaxutilshandlercU$N)os 9/opt/imh/python3.13/lib/python3.13/xml/sax/expatreader.py_mkproxyr!sc\rSrSrSrg) _ClosedParser(rN)__name__ __module__ __qualname____firstlineno____static_attributes__rrrrr(srrc6\rSrSrSrSrSrSrSrSr Sr g ) ExpatLocator-zLocator for use with the ExpatParser class. This uses a weak reference to the parser object to avoid creating a circular reference between the parser and the content handler. c$[U5Ulgr)r_refselfparsers r__init__ExpatLocator.__init__3sV$ rcbURnURcgURR$r)r$_parserErrorColumnNumberr%s rgetColumnNumberExpatLocator.getColumnNumber6s( >> !~~///rcbURnURcgURR$N)r$r+ErrorLineNumberr%s r getLineNumberExpatLocator.getLineNumber<s( >> !~~---rcVURnUcgURR5$r)r$_source getPublicIdr%s rr7ExpatLocator.getPublicIdB& >~~))++rcVURnUcgURR5$r)r$r6 getSystemIdr%s rr;ExpatLocator.getSystemIdHr9r)r$N) rrrr__doc__r(r-r3r7r;rrrrr!r!-s  %0 . , ,rr!c\rSrSrSrS%SjrSrSrSrSr Sr S r S r S&S jr S rS rSrSrSrSrSrSrSrSrSrSrSrSrSrSrSrSrSr Sr!S r"S!r#S"r$S#r%g$)' ExpatParserQz$SAX driver for the pyexpat C module.c[RRX5 [R"5UlSUlXlSUlSUl/Ul SUl SUl g)NFr) rIncrementalParserr( InputSourcer6r+ _namespaces_lex_handler_prop_parsing _entity_stack _external_ges _interning)r&namespaceHandlingbufsizes rr(ExpatParser.__init__TsY##,,T; ,,.  ,!% rc[R"U5nXlUR5 URR [ U55 [RRX5 g! UR5 e=f)z3Parse an XML document from a URL or an InputSource.N) rprepare_input_sourcer6reset _cont_handlersetDocumentLocatorr!rrBparse _close_sourcer&sources rrRExpatParser.parseasj..v6   JJL    1 1,t2D E  ' ' - -d ;     s AA22BczUR5b*URRUR55 ggr)r;r+SetBaserTs r prepareParserExpatParser.prepareParserqs1     + LL !3!3!5 6 ,rc[RRX5 UR(aUR 5 ggr)rrBsetContentHandlerrF_reset_cont_handler)r&rs rr\ExpatParser.setContentHandlerws.##55dD ==  $ $ & rcU[:Xa UR$U[:XaURSL$U[[ [ 4;agU[:Xa UR$[SU-5e)NrFeature '%s' not recognized) rrDr rIrrrrrHSAXNotRecognizedExceptionr&names r getFeatureExpatParser.getFeature|sn % %## # - -??$. . (*>022 ) )%% %'(E(LMMrcUR(a [S5eU[:XaX lgU[:XaX lgU[ :Xa%U(aURc0UlggSUlgU[:XaU(a [S5egU[:XaU(a [S5egU[:XaU(a [S5eg[SU-5e)Nz!Cannot set features while parsingz!expat does not support validationz/expat does not read external parameter entitiesz(expat does not report namespace prefixesr`) rFSAXNotSupportedExceptionrrDrrHr rIrrrra)r&rcstates r setFeatureExpatParser.setFeatures ==*+NO O % %$  ) )!&  - -??*&(DO+#' ' '.799) ).EGG/ /.>@@,-46 6rcVU[R:Xa UR$U[:Xa UR$U[ :Xa\UR (a@[UR S5(aUR R5$[S5e[S5e[SU-5e)NGetInputContextz=This version of expat does not support getting the XML stringz.XML string cannot be returned when not parsingProperty '%s' not recognized) rproperty_lexical_handlerrEr rIr r+hasattrrlrargrbs r getPropertyExpatParser.getPropertys 733 3)) ) , ,?? " ( (||4<<):;;<<77993*++/DFF'(F(MNNrcU[R:Xa)X lUR(aUR 5 ggU[ :XaX lgU[:Xa[SU-5e[SU-5e)NzProperty '%s' cannot be setrm) rrnrErF_reset_lex_handler_propr rIr rgra)r&rcvalues r setPropertyExpatParser.setPropertysw 733 3%* "}},,. , ,#O ( (*+H+/,01 1,,J,0-12 2rcUR(d1UR5 SUlURR5 URR X5 g![ RaOn[[ R"UR5X05nURRU5 SnAgSnAff=f)NT) rFrOrP startDocumentr+Parser errorSAXParseException ErrorStringcode _err_handler fatalError)r&dataisFinaleexcs rfeedExpatParser.feeds}} JJL DM    , , . . LL  t -{{ .#E$5$5aff$=qGC    ( ( - - .sA C4AB>>CcURcgURR5nURRS5 URRSS5 URRU5 g![R aOn[ [R"UR5X 5nURRU5 SnANzSnAff=f!URRU5 f=f)NFr) r+GetReparseDeferralEnabledSetReparseDeferralEnabledryr rzr{r|r}r~r)r& was_enabledrrs rflushExpatParser.flushs <<  ll<<>  @ LL 2 25 9 LL  sE * LL 2 2; ? {{ .#E$5$5aff$=qGC    ( ( - - . LL 2 2; ?s*7A==C ACC#C  C##DcURnUR5nUbUR5 UR5nUbUR5 gg!UR5nUbUR5 ff=fr)r6getCharacterStreamclose getByteStream)r&rUfiles rrSExpatParser._close_sourcesu ,,.D '')D  '')D  s #A&A<cUR(d,URb[UR[5(agUR SSS9 UR R 5 SUlSUlSUlURbF[5nURRUlURRUl XlUR5 g!SUlURbF[5nURRUlURRUl XlUR5 f=f)NrT)rF) rGr+ isinstancerrrP endDocumentrFr,r2rSr%s rrExpatParser.closes   $,,"6 t||] 3 3  ! IIc4I (    * * ,!DMDL!DM||'&+/<<+I+I()-)E)E&%    "DM||'&+/<<+I+I()-)E)E&%    s 8C##A,EcURRURlURRURlgr)rPprocessingInstructionr+ProcessingInstructionHandler charactersCharacterDataHandlerr&s rr]ExpatParser._reset_cont_handlers5$($6$6$L$L 1,0,>,>,I,I )rc,URnURnUc$SUlSUlSUlSUlSUlgURUlURUlURUlURUlURUlgr) rEr+CommentHandlerStartCdataSectionHandlerEndCdataSectionHandlerStartDoctypeDeclHandlerEndDoctypeDeclHandlercomment startCDATAendCDATAstart_doctype_declendDTD)r&lexr's rrs#ExpatParser._reset_lex_handler_prop s$$ ;$(F !.2F +,0F )-1F *+/F ($'KKF !.1nnF +,/LLF )-1-D-DF *+.::F (rcXUR(a[R"URR 5SUR S9UlSUR lURUR l URUR l Or[R"URR 5UR S9UlURUR l URUR l UR5 URUR lUR"UR lUR&UR lUR*UR lSUlUR0(aUR35 UR4UR lUR8UR lUR R?[R@5 SUl!/Ul"g![<a NDf=f)N )internr1F)#rDr r r6 getEncodingrIr+namespace_prefixesstart_element_nsStartElementHandlerend_element_nsEndElementHandler start_element end_elementr]unparsed_entity_declUnparsedEntityDeclHandler notation_declNotationDeclHandlerstart_namespace_declStartNamespaceDeclHandlerend_namespace_declEndNamespaceDeclHandler_decl_handler_proprErsexternal_entity_refExternalEntityRefHandlerskipped_entity_handlerSkippedEntityHandlerAttributeErrorSetParamEntityParsing*XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONErFrGrs rrOExpatParser.resets    --dll.F.F.H#59__FDL./DLL +/3/D/DDLL ,-1-@-@DLL * --dll.F.F.H7;HDL/3/A/ADLL ,-1-=-=DLL *   "151J1J .+/+=+= (151J1J ./3/F/F ,"&  ! !  ( ( *150H0H - 040K0KDLL - **  < < >    s H H)(H)cJURcgURR$r)r+r,rs rr-ExpatParser.getColumnNumberCs << ||---rcJURcgURR$r0)r+r2rs rr3ExpatParser.getLineNumberHs << ||+++rc6URR5$r)r6r7rs rr7ExpatParser.getPublicIdM||''))rc6URR5$r)r6r;rs rr;ExpatParser.getSystemIdPrrcNURRU[U55 gr)rP startElementAttributesImpl)r&rcattrss rrExpatParser.start_elementTs ''nU.CDrc:URRU5 gr)rP endElementrbs rrExpatParser.end_elementW %%d+rcUR5n[U5S:XaSU4nO%[U5S:Xa USUS4nO [U5n0n0nUR5HeupgUR5n[U5n U S:XaUn SU4n O0U S:XaUS<SUS<3n USUS4n OUSn [U5n XtU 'XU 'Mg URR US[ XE55 g)Nr1r:)splitlentupleitemsrPstartElementNSAttributesNSImpl) r&rcrpairnewattrsqnamesanamertpartslengthqnameapairs rrExpatParser.start_element_nsZszz| t9>$$rc:URRU5 gr)rPr)r&rs rcharacter_dataExpatParser.character_datarrc:URRX5 gr)rPstartPrefixMapping)r&prefixuris rr ExpatParser.start_namespace_decls --f:rc:URRU5 gr)rPendPrefixMapping)r&rs rrExpatParser.end_namespace_decls ++F3rc<URRXU5 gr)rEstartDTD)r&rcsysidpubidhas_internal_subsets rrExpatParser.start_doctype_decls ''U;rc<URRXX55 gr) _dtd_handlerunparsedEntityDecl)r&rcbaserr notation_names rr ExpatParser.unparsed_entity_decls ,,T%Orc<URRXU5 gr)r notationDecl)r&rcrrrs rrExpatParser.notation_decls &&tE:rcUR(dgURRXC5n[R"UUR R 5=(d S5nURRURUR 45 URRU5Ul XPl[RRX5 URSuUl UlURS g! g=f)Nr1r)rH _ent_handler resolveEntityrrNr6r;rGappendr+ExternalEntityParserCreaterrBrR)r&contextrrrrUs rrExpatParser.external_entity_refs!!""00>..v/3||/G/G/I02/13 !!4<<">?||>>wG     ' ' - -d ;(,'9'9"'=$t|   r "  s >DD cRU(aSU-nURRU5 g)N%)rP skippedEntity)r&rcis_pes rr"ExpatParser.skipped_entity_handlers" t8D ((.r) rrGrHrIrErDr+rFr6N)ri)F)&rrrrr=r(rRrYr\rdrirprurrrSrr]rsrOr-r3r7r;rrrrrrrrrrrrrrrrrr?r?Qs.  7 ' N6<O$ 2 ." @ !*J 6 # N. , **E, ND 4?,;4<P;,/rr?c[U0UD6$r)r?)argskwargss r create_parserrs  ' ''r__main__z:http://www.ibiblio.org/xml/examples/shakespeare/hamlet.xml)+r=versionxml.sax._exceptionsxml.sax.handlerrrrrrr r r xml.parsersr roSAXReaderNotAvailable ImportErrorxml.saxrrrrr_weakrefweakrefproxyrrLocatorr!rBr?rrxml.sax.saxutilsxmlpr\sax XMLGeneratorsetErrorHandler ErrorHandlerrRrrrr1s\ !B6F4HA! 5. ) )#$94@@ *00))--  }}H  ,9$$,Hg/)--y/@/@g/V (  zA((5578cgg**,-GG HI a =  5t <<=sE0EE E'&E'