def arr_child_nodes(dx_nodes, dx_node):
    """
    Returns an array of child dx_nodes of dx_node that are part of dx_nodes
    Use CHILD_ARRAY over gen_child_nodes if it is consumed more times afterwards.

    :param dx_nodes: [DiffxNode, ..]
    :param dx_node: DiffxNode
    """
    _start_index = dx_nodes.index(dx_node)
    for _dx_node in dx_nodes[_start_index:]:
        if _dx_node.xpath.find(dx_node.xpath) == 0:
            _stop_elment = _dx_node
        elif _dx_node.xpath.find(dx_node.xpath) != 0:
            break
    _stop_index = dx_nodes.index(_stop_elment)
    return dx_nodes[_start_index + 1:_stop_index + 1]
