Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
site-packages
/
lxml
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/site-packages/lxml/sax.pyc
mò ÔZ´Gc @ s d Z d k l Z d k Z d k l Z l Z d k l Z l Z d e i f d „ ƒ YZ d „ Z d e e f d „ ƒ YZ d e f d „ ƒ YZ d „ Z d S( sI SAX-based adapter to copy trees from/to the Python standard library. Use the `ElementTreeContentHandler` class to build an ElementTree from SAX events. Use the `ElementTreeProducer` class or the `saxify()` function to fire the SAX events of an ElementTree against a SAX ContentHandler. See http://codespeak.net/lxml/sax.html ( s ContentHandlerN( s ElementTrees SubElement( s Comments ProcessingInstructiont SaxErrorc B s t Z d Z RS( s General SAX error. ( t __name__t __module__t __doc__( ( ( t, /usr/lib/python2.4/site-packages/lxml/sax.pyR s c C s= | d d j o t | d i d d ƒ ƒ Sn d | f Sd S( Ni t {i t }( t tagt tuplet splitt None( R ( ( R t _getNsTag s t ElementTreeContentHandlerc B s§ t Z d Z e d „ Z d „ Z e e d e i ƒZ d „ Z d „ Z d „ Z d „ Z d „ Z e d „ Z d „ Z d „ Z e d „ Z d „ Z d „ Z e Z RS( s/ Build an lxml ElementTree from SAX events. c C si d | _ g | _ g | _ d | _ h d d g <| _ h | _ | d j o t i } n | | _ d S( N( R t selft _roott _root_siblingst _element_stackt _default_nst _ns_mappingt _new_mappingst makeelementt etreet Elementt _makeelement( R R ( ( R t __init__ s c C s t | i ƒ S( s= Contains the generated ElementTree after parsing is finished.N( t ElementTreeR R ( R ( ( R t _get_etree+ s t docc C s d S( N( ( R t locator( ( R t setDocumentLocator1 s c C s d S( N( ( R ( ( R t startDocument4 s c C s d S( N( ( R ( ( R t endDocument7 s c C si | | i | <y | i | i | ƒ Wn# t j o | g | i | <n X| d j o | | _ n d S( N( t uriR R t prefixR t appendt KeyErrorR R ( R R! R ( ( R t startPrefixMapping: s c C s9 | i | } | i ƒ | d j o | d | _ n d S( Niÿÿÿÿ( R R R! t ns_uri_listt popR R ( R R! R% ( ( R t endPrefixMappingC s c C s‘ | \ } } | o d | } n( | i o d | i | f } n | } | o€ h } y | i ƒ } Wn t j o | i ƒ } n XxK | D]9 \ } } | d o d | } n | d } | | | <qŽ Wn d } | i } | i d j oi | i | | | i ƒ } | _ | i o5 t | d ƒ o% x"