Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    raggiungere un nodo xml

    Ciao a tutti.
    Con queste righe qui, riesco a leggere il primo nodo del file. Come faccio a leggere il nodo 4 ad esempio?

    codice:
    mio_xml = new XML();
    mio_xml.path = this;
    mio_xml.ignoreWhite = true;
    mio_xml.onLoad = function(success) {
    	if(success){
    		var t1 = "<font color='#006699'>";
    		var t2 = "</font>";
    		var prezzo = this.firstChild.attributes.prezzo;
    		var testo = this.firstChild.attributes.testo;
    		var img = this.firstChild.attributes.img;
    	
    		this.path.testo += t1 + testo + t2 + "
    
    ";
    		this.path.testo += "Prezzo: " + t1 + prezzo + t2 + "
    ";
    		loadMovie(img, _root.mc);
    	} else {
    		this.path.testo = "caricamento errato";
    	}
    };
    mio_xml.load("file.xml");
    Il tempo passa non solo per chi parla, ma anche per chi ascolta

  2. #2
    Up up! Dai raga, HELP ME!!!
    Il tempo passa non solo per chi parla, ma anche per chi ascolta

  3. #3
    UP UP!
    Il tempo passa non solo per chi parla, ma anche per chi ascolta

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.