ó øŽr:c@s†dZddlmZddlmZmZddlmZmZm Z m Z m Z ddl m Z eƒd„Zeƒd„ZdS( s~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 interface classes and functions: ContentHandler, ErrorHandler - base classes for SAX2 handlers SAXException, SAXNotRecognizedException, SAXParseException, SAXNotSupportedException - SAX exceptions make_parser - creation of a new parser object parse, parseString - parse a document, using a provided handler iÿÿÿÿ(t InputSource(tContentHandlert ErrorHandler(t SAXExceptiontSAXNotRecognizedExceptiontSAXParseExceptiontSAXNotSupportedExceptiontSAXReaderNotAvailable(t make_parsercCs4tƒ}|j|ƒ|j|ƒ|j|ƒdS(N(RtsetContentHandlertsetErrorHandlertparse(tfilename_or_streamthandlert errorHandlertparser((sB/opt/freeware/lib/python2.7/site-packages/_xmlplus/sax/__init__.pyR s   cCs yddlm}Wn!tk r7ddlm}nX|dkrPtƒ}ntƒ}|j|ƒ|j|ƒtƒ}|j ||ƒƒ|j |ƒdS(Niÿÿÿÿ(tStringIO( t cStringIORt ImportErrortNoneRRR R Rt setByteStreamR (tstringR RRRtinpsrc((sB/opt/freeware/lib/python2.7/site-packages/_xmlplus/sax/__init__.pyt parseString!s       N(t__doc__t xmlreaderRR RRt _exceptionsRRRRRtsax2extsRR R(((sB/opt/freeware/lib/python2.7/site-packages/_xmlplus/sax/__init__.pyts (