salve ragazzi ho un problema. ho creato un file xml che viene letto da flash con questa as:
function loadXML(loaded) {
if (loaded) {
_root.inventor = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.comments = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
_root.divisione = this.firstChild.childNodes[0].childNodes[2].firstChild.nodeValue;
artista_txt.text = _root.inventor;
titolo_txt.text = _root.comments;
label_txt.text =_root.divisione;
_root.inventor = this.firstChild.childNodes[0].childNodes[3].firstChild.nodeValue;
_root.comments = this.firstChild.childNodes[0].childNodes[4].firstChild.nodeValue;
_root.divisione = this.firstChild.childNodes[0].childNodes[5].firstChild.nodeValue;
artista1_txt.text = _root.inventor;
titolo1_txt.text = _root.comments;
label1_txt.text =_root.divisione;
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("chart.xml");
il file xml mentre e questo:
<?xml version="1.0"?>
<chart>
<person>
<name>Bob Sinclair</name><comment>Hold on</comment><divisione>time</divisione>
<name>ron carrol</name><comment>Feeling</comment><divisione>oxid</divisione>
</person>
</chart>
io vorrei far interagire xml con aspx in modo da poter aggiornare il file xml da aspx, ma qualcuno mi ha detto che la sintassi dell'xml non e adatta ad aspx! mi potete aiutareo dare dei chiarimenti? ciao e grazie

Rispondi quotando

