def METHOD_NAME(cls, node, runtime, keys, id_generator):
    """
    Construct this XBlock from the given XML node.
    """
    block = runtime.construct_xblock_from_class(cls, keys)
    block.content = str(node.text or "")
    if 'type' in node.attrib:  # 'type' is optional - default is 'completed'
        block.type = node.attrib['type']
    for child in node:
        block.content += etree.tostring(child, encoding='unicode')
    return block