def get_single_child_element_text_contents(el, child_element_tag):
    nodes = el.findall(('./%s' % child_element_tag))
    nnodes = len(nodes)
    if (nnodes == 0):
        return None
    text = nodes[0].text
    if (nnodes > 1):
        print(("Warning: more than 1 child element with tag '%s' found; picking first" % (child_element_tag,)))
    return text
def get_single_child_element_text_contents(el, child_element_tag):
    nodes = el.findall(('./%s' % child_element_tag))
    nnodes = len(nodes)
    if (nnodes == 0):
        return None
    text = nodes[0].text
    if (nnodes > 1):
        print(("Warning: more than 1 child element with tag '%s' found; picking first" % (child_element_tag,)))
    return text