def val(node):
    """
    Normalize the given DOM node and return the value
    of its first child (the string content of the node).
    """
    try:
        node.normalize()
        return node.firstChild.wholeText  # Handles CDATASection too
    except __HOLE__:
        return ''
dataset/ETHPy150Open JamesMilnerUK/Loxo/conversiontools/kml/kml.py/val