Ciao ragazzi.
Premetto che sto iniziando ora a studiarmi la gestione degli Rss, volevo chiedervi come vengono gestite le immagini. Per intenderci ho questo pagina :
Riesco a leggere i testi e i link ma non le immagini.codice:<% 'Rielaboraun documento XML RSS e RDF 'e fornisce in output un documento HTML url=request("url") ' Creo oggetto DOM XML Set objXML = Server.CreateObject("msxml2.DOMDocument.3.0") objXML.async = false objXML.setProperty "ServerHTTPRequest", True ' validazione del documento XML objXML.validateOnParse = false 'true ' non conservare spazi objXML.preserveWhiteSpace = false blnLoaded = objXML.Load("http://www.frascatiscienza.it/feed/") If Not blnLoaded Then Response.write "Nessuna news da visualizzare" Else set objNodeList = objXML.getElementsByTagName("channel") For Each objNode In objNodeList For Each objNode2 In objNode.childNodes Select Case objNode2.nodeName Case "title" html = html + "<tr><td>" html = html + objNode2.firstChild.nodevalue html = html + "</td></tr>" Case "link" html = html + "<tr><td><a target=_blank href="&objNode2.firstChild.nodevalue & ">" html = html + objNode2.firstChild.nodevalue html = html + "</a></td></tr>" Case "description" html = html + "<tr><td>" html = html + objNode2.firstChild.nodevalue html = html + "</td></tr>" End Select Next Next html = html + "<tr><td><hr></td></tr>" Set objNodeList = objXML.getElementsByTagName("item") For Each objNode In objNodeList For Each objNode2 In objNode.childNodes response.write objNode2.nodeName& " " Select Case objNode2.nodeName Case "title" strTitle = objNode2.firstChild.nodevalue Case "link" strURL = objNode2.firstChild.nodevalue Case "description" strDescription = objNode2.firstChild.nodevalue End Select Next html = html + "<tr><td><li/><a target=_blank href=" + strURL + ">" html = html + strTitle + "</a> " + strDescription +"</td></tr>" strTitle = "" strURL = "" strDescription = "" Next html = "<table width=400>"+html+"</table>" set objNodeList = Nothing End if %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> </head> <body> <% Response.write (html) %> <table border="0" width="400" cellspacing="0" cellpadding="0"> <form action="RSSview.asp" method="POST"> <tr><td width="100%"><hr></td></tr> <tr><td width="100%">Inserire l'URL di un feed RSS o RDF</td></tr> <tr><td width="100%"><input type="text" size="60" name="url" /></td></tr> <tr><td width="100%"><input type="submit" value="Visualizza" /></td></tr> </form> </table> </body> </html>
La mia necessità è , appunto riuscire a leggere anche le immagini.
Potreste aiutarmi??
Grazie

Rispondi quotando