def getXMLInteger(elem, tag):
    e = elem.find(tag)
    if e is None:
        raise ValueError('Missing %s in %s' % (tag, elem))
    return int(e.text.strip())
Return the text within the named tag as an integer.
dataset/ETHPy150Open geopython/OWSLib/owslib/util.py/getXMLInteger