

def xmlvalid(xml, xsd):
    '\n\n    Test whether an XML document is valid\n\n    Parameters\n    ----------\n\n    - xml: XML content\n    - xsd: pointer to XML Schema (local file path or URL)\n\n    '
    xsd1 = etree.parse(xsd)
    xsd2 = etree.XMLSchema(xsd1)
    doc = etree.parse(StringIO(xml))
    return doc.validate(doc)

dataset/ETHPy150Open geopython/OWSLib/owslib/util.py xmlvalid/VarMisuse@45/126 `xsd2`->`doc`