def handle_node_attribute(node, tag_name, attribute_name):
    """Return the contents of a tag based on his given name inside of a given node."""
    element = node.getElementsByTagName(tag_name)
    attr = element.item(0).getAttribute(attribute_name)
    return attr