Ciao a tutti.
Quesito:
Come faccio a colorare in modo differente i due nodeValue di questa struttura XML con AS:
XML
AScodice:<faqs> <faq numero="1"> <domanda>Domanda</domanda> <risposta>Risposta</risposta> </faq> <faq numero="2"> <domanda>Domanda</domanda> <risposta>Risposta</risposta> </faq> </faqs>
codice:var nodes = this.firstChild.childNodes; for (var i = 0; i<nodes.length; i++) { this.path.testo += " "; this.path.testo += "Titolo: "+nodes[i].attributes.titolo+" "; this.path.testo += " "; for (var j = 0; j<nodes[i].childNodes.length; j++) { var nodovalue0 = nodes[0].childNodes[j]; this.path.testo += ""+nodovalue0+" "; } }![]()

Rispondi quotando