def METHOD_NAME(self, file=None, string=None):
    """
    SAX parse XML text.
    @param file: Parse a python I{file-like} object.
    @type file: I{file-like} object.
    @param string: Parse string XML.
    @type string: str
    """
    timer = metrics.Timer()
    timer.start()
    sax, handler = self.saxparser()
    if file is not None:
        sax.METHOD_NAME(file)
        timer.stop()
        metrics.log.debug('sax (%s) duration: %s', file, timer)
        return handler.nodes[0]
    if string is not None:
        if isinstance(string, str):
            string = string.encode()
        parseString(string, handler)
        timer.stop()
        metrics.log.debug('%s\nsax duration: %s', string, timer)
        return handler.nodes[0]