codice:
myarray[0].childNodes.length
Un nodo non ha lunghezza, è la proprietà childNodes che ce l'ha..