<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __get_attribute(node, name, default_value=''):
 """Retrieves the attribute of the given name from the node. If not present then the default_value is used. """

    if node.hasAttribute(name):
        return node.attributes[name].value.strip()
    else:
        return default_value