+
    iP1  c                   s    ^RI Ht ^RIHtHt  ! R R4      t ! R R]4      t ! R R4      t ! R	 R
4      t ! R R4      t	 ! R R]	4      t
R t]R8X  d
   ]! 4        R# R# )   )handler)SAXNotSupportedExceptionSAXNotRecognizedExceptionc                   sz   a  ] tR t^t o R tR tR tR tR tR t	R t
R tR	 tR
 tR tR tR tR tR tRtV tR# )	XMLReaderc                s    \         P                  ! 4       V n        \         P                  ! 4       V n        \         P
                  ! 4       V n        \         P                  ! 4       V n        R # N)	r   ZContentHandler_cont_handlerZ
DTDHandler_dtd_handlerZEntityResolver_ent_handlerZErrorHandler_err_handlerself   &*/usr/lib64/python3.14/xml/sax/xmlreader.py__init__ZXMLReader.__init__   sF    $335#..0#224#002    c                    \        R 4      hz This method must be implemented!ZNotImplementedErrorr   source   &&r   parseZXMLReader.parse   s    !"DEEr   c                    V P                   # r   r   r
   r   r   getContentHandlerZXMLReader.getContentHandler"   s    !!!r   c                    Wn         R # r   r   r   r   r   r   setContentHandlerZXMLReader.setContentHandler&   s    $r   c                r   r   r   r
   r   r   getDTDHandlerZXMLReader.getDTDHandler*          r   c                r   r   r   r   r   r   setDTDHandlerZXMLReader.setDTDHandler.       #r   c                r   r   r   r
   r   r   getEntityResolverZXMLReader.getEntityResolver2   r   r   c                r   r   r"   )r   Zresolverr   r   setEntityResolverZXMLReader.setEntityResolver6   s    $r   c                r   r   r	   r
   r   r   getErrorHandlerZXMLReader.getErrorHandler:   r   r   c                r   r   r%   r   r   r   setErrorHandlerZXMLReader.setErrorHandler>   r!   r   c                r   )zLocale support not implemented)r   )r   Zlocaler   r   	setLocaleZXMLReader.setLocaleB   s     ''GHHr   c                &    \        R V,          4      hzFeature '%s' not recognizedr   r   namer   r   
getFeatureZXMLReader.getFeatureK       '(E(LMMr   c                r)   r*   r+   )r   r-   Zstate   &&&r   
setFeatureZXMLReader.setFeatureO   r/   r   c                r)   zProperty '%s' not recognizedr+   r,   r   r   getPropertyZXMLReader.getPropertyS       '(F(MNNr   c                r)   r2   r+   )r   r-   Zvaluer0   r   setPropertyZXMLReader.setPropertyW   r4   r   )r   r   r   r	   N)__name__
__module____qualname____firstlineno__r   r   r   r   r   r    r#   r$   r&   r'   r(   r.   r1   r3   r5   __static_attributes____classdictcell__Z__classdict__   @r   r   r      s\     3F"%!$!%!$INNOO Or   r   c                   sH   a  ] tR t^[t o R	R ltR tR tR tR tR t	Rt
V tR# )
IncrementalParserc                s<    Wn         \        P                  V 4       R # r   )_bufsizer   r   )r   Zbufsizer   r   r   ZIncrementalParser.__init__o   s    4 r   c                s*   ^RI Hp VP                  V4      pV P                  V4       VP	                  4       pVf   VP                  4       pVP                  V P                  4      ;p'       d   V P                  V4       K6  V P                  4        R# )r    )saxutilsN)
 r@   Zprepare_input_sourceprepareParsergetCharacterStreamgetByteStreamZreadr?   feedclose)r   r   r@   ZfileZbuffers   &&   r   r   ZIncrementalParser.parses   sq    ..v66"((*<'')D		$--00f0IIf

r   c                r   r   r   )r   Zdatar   r   rE   ZIncrementalParser.feed   s     ""DEEr   c                r   )z!prepareParser must be overridden!r   r   r   r   rB   ZIncrementalParser.prepareParser   s     ""EFFr   c                r   r   r   r
   r   r   rF   ZIncrementalParser.close   s     ""DEEr   c                r   r   r   r
   r   r   resetZIncrementalParser.reset   s    
 ""DEEr   )r?   N)i   )r6   r7   r8   r9   r   r   rE   rB   rF   rG   r:   r;   r<   r=   r   r>   r>   [   s-     (!
FG
FF Fr   r>   c                   s8   a  ] tR t^t o R tR tR tR tRtV t	R# )Locatorc                    R# r    i r
   r   r   getColumnNumberZLocator.getColumnNumber       	r   c                rI   rJ   rK   r
   r   r   getLineNumberZLocator.getLineNumber   rM   r   c                    R # r   rK   r
   r   r   getPublicIdZLocator.getPublicId       r   c                rO   r   rK   r
   r   r   getSystemIdZLocator.getSystemId   rQ   r   rK   N)
r6   r7   r8   r9   rL   rN   rP   rR   r:   r;   r<   r=   r   rH   rH      s      r   rH   c                   sf   a  ] tR t^t o RR ltR tR tR tR tR t	R t
R	 tR
 tR tR tRtV tR# )InputSourceNc                sJ    Wn         R V n        R V n        R V n        R V n        R # r   )_InputSource__system_id_InputSource__public_id_InputSource__encoding_InputSource__bytefile_InputSource__charfiler   Z	system_idr   r   r   ZInputSource.__init__   s%    $r   c                r   r   rU   )r   Z	public_idr   r   setPublicIdZInputSource.setPublicId       $r   c                r   r   rZ   r
   r   r   rP   ZInputSource.getPublicId       r   c                r   r   rT   rY   r   r   setSystemIdZInputSource.setSystemId   r\   r   c                r   r   r^   r
   r   r   rR   ZInputSource.getSystemId   r]   r   c                r   r   rV   )r   Zencodingr   r   setEncodingZInputSource.setEncoding   	     #r   c                r   r   r`   r
   r   r   getEncodingZInputSource.getEncoding       r   c                r   r   rW   )r   Zbytefiler   r   setByteStreamZInputSource.setByteStream   s	     #r   c                r   r   re   r
   r   r   rD   ZInputSource.getByteStream   s    
 r   c                r   r   rX   )r   Zcharfiler   r   setCharacterStreamZInputSource.setCharacterStream  rb   r   c                r   r   rg   r
   r   r   rC   ZInputSource.getCharacterStream  rd   r   )Z
__bytefileZ
__charfileZ
__encodingZ__public_idZ__system_idr   )r6   r7   r8   r9   r   r[   rP   r_   rR   ra   rc   rf   rD   rh   rC   r:   r;   r<   r=   r   rS   rS      sA       % % ### r   rS   c                   s   a  ] tR tRt o R tR tR tR tR tR t	R t
R	 tR
 tR tR tR tR tRR ltR tR tR tRtV tR# )AttributesImpli  c                r   r   _attrs)r   attrsr   r   r   ZAttributesImpl.__init__  s	     r   c                ,    \        V P                  4      # r   Zlenrk   r
   r   r   	getLengthZAttributesImpl.getLength      4;;r   c                rO   )ZCDATArK   r,   r   r   getTypeZAttributesImpl.getType  s    r   c                (    V P                   V,          # r   rj   r,   r   r   getValueZAttributesImpl.getValue"      {{4  r   c                rr   r   rj   r,   r   r   getValueByQNameZAttributesImpl.getValueByQName%  rt   r   c                <    WP                   9  d   \        V4      hV# r   rk   KeyErrorr,   r   r   getNameByQNameZAttributesImpl.getNameByQName(      {{"4. r   c                rv   r   rw   r,   r   r   getQNameByNameZAttributesImpl.getQNameByName-  rz   r   c                H    \        V P                  P                  4       4      # r   listrk   keysr
   r   r   getNamesZAttributesImpl.getNames2      DKK$$&''r   c                r|   r   r}   r
   r   r   	getQNamesZAttributesImpl.getQNames5  r   r   c                rm   r   rn   r
   r   r   __len__ZAttributesImpl.__len__8  rp   r   c                rr   r   rj   r,   r   r   __getitem__ZAttributesImpl.__getitem__;  rt   r   c                r|   r   r}   r
   r   r   r   ZAttributesImpl.keys>  r   r   c                s    WP                   9   # r   rj   r,   r   r   __contains__ZAttributesImpl.__contains__A  s    {{""r   Nc                s8    V P                   P                  W4      # r   )rk   get)r   r-   Zalternativer0   r   r   ZAttributesImpl.getD  s    {{t11r   c                s8    V P                  V P                  4      # r   )	__class__rk   r
   r   r   copyZAttributesImpl.copyG  s    ~~dkk**r   c                r|   r   )r~   rk   itemsr
   r   r   r   ZAttributesImpl.itemsJ  s    DKK%%'((r   c                r|   r   )r~   rk   valuesr
   r   r   r   ZAttributesImpl.valuesM  s    DKK&&())r   rj   r   )r6   r7   r8   r9   r   ro   rq   rs   ru   ry   r{   r   r   r   r   r   r   r   r   r   r   r:   r;   r<   r=   r   ri   ri     s_      !!

(( !(#2+)* *r   ri   c                   sD   a  ] tR tRt o R tR tR tR tR tR t	Rt
V tR	# )
AttributesNSImpliR  c                s    Wn         W n        R # r   rk   _qnames)r   rl   Zqnamesr0   r   r   ZAttributesNSImpl.__init__T  s    
 r   c                s    V P                   P                  4        F   w  r#W18X  g   K  V P                  V,          u # 	  \        V4      hr   )r   r   rk   rx   r   r-   ZnsnameZqname   &&  r   ru   Z AttributesNSImpl.getValueByQName\  s;    #||113OV}{{6**  4 tnr   c                sr    V P                   P                  4        F  w  r#W18X  g   K  Vu # 	  \        V4      hr   )r   r   rx   r   r   r   ry   ZAttributesNSImpl.getNameByQNamec  s1    #||113OV}  4 tnr   c                rr   r   )r   r,   r   r   r{   ZAttributesNSImpl.getQNameByNamej  s    ||D!!r   c                r|   r   )r~   r   r   r
   r   r   r   ZAttributesNSImpl.getQNamesm  s    DLL'')**r   c                sN    V P                  V P                  V P                  4      # r   )r   rk   r   r
   r   r   r   ZAttributesNSImpl.copyp  s    ~~dkk4<<88r   r   N)r6   r7   r8   r9   r   ru   ry   r{   r   r   r:   r;   r<   r=   r   r   r   R  s(     "+9 9r   r   c                  sB    \        4        \        4        \        4        R # r   )r   r>   rH   rK   r   r   _testr   t  s    KIr   Z__main__N)rA   r   Z_exceptionsr   r   r   r>   rH   rS   ri   r   r   r6   rK   r   r   <module>r      su     L
NO NO`DF	 DFP 0U Ur:* :*|9~ 9D
 z	G r   