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 AttributeError:
        return ''