Devo leggere questo file XML situato in un server remoto, utilizzando ASP.
Per esempio riuscire a sapere qual'è la PROV della 1° ricorrenza.
Potete aiutarmi?
Grazie a tutti.
Codice del file XML da leggere sul server remoto:
Codice della pagina ASP che non funziona:codice:<?xml version = '1.0' encoding = 'ISO-8859-1' standalone = 'yes'?> <RECORD NRICORRENZE='2'> <RICORRENZA N='1'> <PROV>BA</PROV> <RAGSOC>PIPPO</RAGSOC> </RICORRENZA> <RICORRENZA N='2'> <PROV>CN</PROV> <RAGSOC>TOPOLINO</RAGSOC> </RICORRENZA> </RECORD>
codice:<% StrURL = "http://www.telextra.com/home/webvisure/risp.asp" Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP") objXMLHTTP.Open "GET", StrURL, false objXMLHTTP.Send content = objXMLHTTP.ResponseText Set XMLRequest=Server.CreateObject("Microsoft.XMLDOM") XMLRequest.async=false XMLRequest.load(content) Set XMLRoot=XMLRequest.DocumentElement prov=XMLRoot.selectSingleNode("PROV").text Response.Write prov Set objxml = Nothing %>![]()

Rispondi quotando
