'Parse a property value from the WebDAV response.'

def _parse_prop(self, response, prop):

    propval = ''
    for line in response.split('\n'):
        if (prop in line):
            try:
                propval = line[(line.index('>') + 1):line.index('</')]
            except Exception:
                pass
    return propval
