':param source: Path to the XML output file to build
:class:`~.executionresult.Result` objects from.
:param include_keywords: Boolean controlling whether to include
keyword information in the result or not. Keywords are
not needed when generating only report.
:param flatten_keywords: List of patterns controlling what keywords to
flatten. See the documentation of ``--flattenkeywords`` option for
more details.'

def __init__(self, source, include_keywords=True, flattened_keywords=None):

    self._source = (source if isinstance(source, ETSource) else ETSource(source))
    self._include_keywords = include_keywords
    self._flattened_keywords = flattened_keywords
