'Parse an XML document from a URL or an InputSource.'

def parse(self, source):

    source = saxutils.prepare_input_source(source)
    self._source = source
    try:
        self.reset()
        self._cont_handler.setDocumentLocator(ExpatLocator(self))
        xmlreader.IncrementalParser.parse(self, source)
    except:
        self._close_source()
        raise
