Ciao ragazzi,
devo implementare su un sito asp.net un codice che ho utilizzato in asp relativamente alla visualizzazione di rss presi dal corriere.
Il codice è questo, ma purtroppo mi dà errore.
Sapete dirmi come posso risolvere?
Grazie a tutti
codice:
'Inizializziamo il Parser MS XML
Set objXML = Server.CreateObject("Microsoft.XMLDOM")
objXML.setProperty "ServerHTTPRequest", true
objXML.async = False
'Carica il file XML o il feed rss in formato xml
strFile= "http://www.corriere.it/rss/homepage.xml"
objXML.Load (strFile)
Set AllItems = objXML.selectNodes("//channel")
For I = 0 to (AllItems.Length - 1)
Set Post = AllItems(I).selectNodes("item")
For J = 0 to (Post.Length-1)
Set title = Post(J).selectNodes("title")
Set description = Post(J).selectNodes("description")
Set link = Post(J).selectNodes("link")
testi = testi & ""&title(0).text&" - "
Next
Set title = Nothing
Set description = Nothing
Set link = Nothing
Set Post = Nothing
Next