def get_text(node):
    """Get text from a node.

    :param node: Node.
    :type node: xml.dom.Node
    :returns: the node's text
    """

    return ''.join(child.data for child in node.childNodes
                   if child.nodeType == node.TEXT_NODE)