document.getElementById("struttura").getElementsBy TagName('li');


va ricalcolato se i nodi cambiano nel tempo.