8889841có
ïúec @ sÁ d d l Z d d l Z d d l Z e j d ƒ d a d d d „ ƒ YZ e d d d d d ƒ Z e j e d
d d ƒ a d
Z d Z
x3 e
d k r» t j e e e ƒ d ƒ e
d Z
q‰ Wd Z t j e e e ƒ d ƒ d a e d d d d d ƒ Z d Z e j e e e e ƒ d ƒ a d Z d Z
x3 e
d k r^t j e e e ƒ d ƒ e
d Z
q,Wd Z t j e e e ƒ d ƒ d a e j
ƒ e j d ƒ d k r«d GHn d e j d ƒ GHd S( iÿÿÿÿNi t callbackc B s> e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C s: | | _ | | _ | | _ | | _ | | _ d | _ d S( Ni ( t startdt startet endet enddt deltat count( t selfR R R R R ( ( sC /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/indexes.pyt __init__
s c C sA t j ƒ | j k r= d t j ƒ | j f GHt j d ƒ n d S( Ns/ document start at wrong index: %d expecting %d
i ( t ctxtt byteConsumedR t syst exit( R ( ( sC /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/indexes.pyt
startDocument s c C s] | j | j | j d | j } t j ƒ | k rY d t j ƒ | f GHt j d ƒ n d S( Ni s- document end at wrong index: %d expecting %d
( R R R R R R
R R ( R t expect( ( sC /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/indexes.pyt endDocument s
"c C sa | d k r] | j | j | j } t j ƒ | k r] d t j ƒ | f GHt j d ƒ q] n d S( Nt bar1s. element start at wrong index: %d expecting %d
i ( R R R R R
R R ( R t tagt attrsR ( ( sC /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/indexes.pyt startElement$ s c C sq | d k rm | j | j | j } t j ƒ | k rZ d t j ƒ | f GHt j d ƒ n | j d | _ n d S( NR s, element end at wrong index: %d expecting %d
i ( R R R R R
R R ( R R R ( ( sC /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/indexes.pyt
endElement. s c C s d S( N( ( R t data( ( sC /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/indexes.pyt
characters8 s ( t __name__t
__module__R R
R R R R ( ( ( sC /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/indexes.pyR s
i i
i iÆ i· s
i s test.xmlsÆ chars1
chars2
chars3
chars4
chars5
<s6
chars7
&8
chars9
i' s i+ i9 iG s2
sÆ chars1
chars2
chars3
chàrs4
chars5
<s6
chars7
&8
très 9
t OKs Memory leak %d bytes( ( R t
setup_testt libxml2t debugMemoryt NoneR R t handlert createPushParsert chunkt it
parseChunkt lent
cleanupParser( ( ( sC /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/indexes.pyt s<