Ho provato, ma mi restituisce in ognuno dei 4 campi di testo il contenuto del primo nodo..
codice:mio_xml = new XML(); mio_xml.path = this; mio_xml.ignoreWhite = true; mio_xml.onLoad = function(success) { if(success){ var node = this.firstChild.firstChild.nodeValue; this.path.campo1 = node; this.path.campo2 = node; this.path.campo3 = node; this.path.campo4 = node; } else { this.path.campo1 = "Dati mancanti"; } }; mio_xml.load("dati.xml");

Rispondi quotando