def parseXRDS(text):
    try:
        element = SafeElementTree.XML(text)
    except (SystemExit, MemoryError, AssertionError, ImportError):
        raise
    except Exception as why:
        exc = XRDSError('Error parsing document as XML')
        exc.reason = why
        raise exc
    else:
        tree = ElementTree.ElementTree(element)
        if not isXRDS(tree):
            raise XRDSError('Not an XRDS document')

        return tree
Parse the given text as an XRDS document.
dataset/ETHPy150Open necaris/python3-openid/openid/yadis/etxrd.py/parseXRDS