(node, child_node)
Return a child node in ODM namespace. Assumes only one child node with that name, and that it will be there.

    >>> from lxml import etree
    >>> foo_node = etree.fromstring(b'''<?xml version="1.0" encoding="UTF-8"?>
    ... <foo xmlns="http://www.cdisc.org/ns/odm/v1.3">
    ...   <bar>baz</bar>
    ... </foo>''')
    >>> get_odm_child(foo_node, 'bar').text
    'baz'
Return a child node in ODM namespace. Assumes only one child node with that name, and that it will be there.
Return a child node in ODM namespace . Assumes only one child node with that name and that it will be there .
def get_odm_child(node, child_node):
    """
    Return a child node in ODM namespace. Assumes only one child node with that name, and that it will be there.

    >>> from lxml import etree
    >>> foo_node = etree.fromstring(b'''<?xml version="1.0" encoding="UTF-8"?>
    ... <foo xmlns="http://www.cdisc.org/ns/odm/v1.3">
    ...   <bar>baz</bar>
    ... </foo>''')
    >>> get_odm_child(foo_node, 'bar').text
    'baz'

    """
    try:
        return node.xpath('./odm:' + child_node, namespaces=odm_nsmap)[0]
    except IndexError:
        raise StudyMetadataError('"{}" tag is missing a "{}" child node'.format(node.tag, child_node))
def get_odm_child ( node , child_node ) : try : return node . xpath ( './odm:' + child_node , namespaces = odm_nsmap ) [ 0 ] except IndexError : raise StudyMetadataError ( '"{}" tag is missing a "{}" child node' . format ( node . tag , child_node ) )