Create before_parent_node and before_node