@classmethod
def parse_task(cls, task_node):
    """ create a task from xml node """
    name = task_node.getElementsByTagName('Name')[0].firstChild.data
    priority = int(task_node.getElementsByTagName('Priority')[0].firstChild
        .data)
    status = task_node.nodeName
    return cls(name, priority, status)
