def testXMLValue(val, attrib=False):

    if val is not None:
        if attrib:
            return val.strip()
        elif val.text:  
            return val.text.strip()
        else:
            return None	
    else:
        return None
Reimplemented from :meth:`~AsyncViewBase.on_done`
dataset/ETHPy150Open geopython/OWSLib/owslib/util.py/testXMLValue--crossover with--dataset/ETHPy150Open couchbase/couchbase-python-client/txcouchbase/bucket.py/BatchedRowMixin.on_done