def xmlvalid(xml, xsd):

    xsd1 = etree.parse(xsd)
    xsd2 = etree.XMLSchema(xsd1)

    doc = etree.parse(StringIO(xml))
    return xsd2.validate(doc)
Given residuals for training datapoints, their cluster assignments,
dataset/ETHPy150Open geopython/OWSLib/owslib/util.py/xmlvalid--crossover with--dataset/ETHPy150Open yahoo/lopq/python/lopq/model.py/project_residuals_to_local