'Read and parse the XML.
@return: the loaded document.
@rtype: a C{list} of Stan objects.'

def _loadDoc(self):

    if (not isinstance(self._path, FilePath)):
        return _flatsaxParse(self._path)
    else:
        with self._path.open('r') as f:
            return _flatsaxParse(f)
