def load(stream, out=sys.stdout):
        """ Load an XML binary stream
        and send XML text to the output
        stream 'out' """

        try:
            p=BinXMLSAXParser()
            p.setContentHandler(XMLGenerator(out))
            p.parse(stream)
        except Exception, e:
            sys.exit(e)
 Load an XML binary stream
        and send XML text to the output
        stream 'out' 
recipes/Python/415983_Simple_XML_serlializerdeserializer_using/recipe-415983.py