def get_text_from_section(stem, path, key):
    """get leaf text from section"""
    subsec = path.split('/')
    for sub in subsec[:-1]:
        stem = stem.find('./{}'.format(sub))
    leaf = stem.find('./{}[@name="{}"]'.format(subsec[-1], key))
    return leaf.text.strip()
