

def testXMLAttribute(element, attribute):
    "\n\n    Test that the XML element and attribute exist, return attribute's value, else return None\n\n    Parameters\n    ----------\n\n    - element: the element containing the attribute\n    - attribute: the attribute name\n\n    "
    if (attribute is not None):
        return element.get(attribute)
    return None

dataset/ETHPy150Open geopython/OWSLib/owslib/util.py testXMLAttribute/VarMisuse@16/102 `element`->`attribute`