codice:
getElementsByTagName("tag2")[0].childNodes[0].nodeValue