Asp classic 播客rss提要阅读经典asp中的itunes图像

Asp classic 播客rss提要阅读经典asp中的itunes图像,asp-classic,rss,podcast,Asp Classic,Rss,Podcast,我正在做一个rss阅读器,看起来非常棒。 我唯一似乎无法工作的事情就是读取提要中的图像 <itunes:image href="http://www.itunes.com/image.jpg"/> 有人能帮忙吗 这是我代码的一部分 For Each objItem in objItems On Error Resume Next TheTitle = objItem.selectSingleNode("title").Text TheL

我正在做一个rss阅读器,看起来非常棒。 我唯一似乎无法工作的事情就是读取提要中的图像

<itunes:image href="http://www.itunes.com/image.jpg"/>

有人能帮忙吗

这是我代码的一部分

  For Each objItem in objItems
      On Error Resume Next
      TheTitle =  objItem.selectSingleNode("title").Text
      TheLink =  objItem.selectSingleNode("image").Text
      Theimg =  objItem.SelectSingleNode("itunes").Attributes(":image").InnerText

      Response.Write "<div class='article'>" &_
                     "<a href=" & TheLink & ">" & _
                     "<span>" & Theimg & TheTitle & "</span>" & _
                     "</a>" & _
                     "</div>"
 Next
对象中每个对象的

出错时继续下一步
title=objItem。选择SingleNode(“标题”)。Text
链接=对象。选择单一节点(“图像”)。文本
Theimg=objItem.SelectSingleNode(“itunes”).Attributes(“:image”).InnerText
响应。写入“”&_
"" & _
""
下一个

您的图像地址需要放入图像标签中

Response.Write "<div class=""article"">" &_
                 "<a href=""" & TheLink & """>" & _
                 "<img src=""" & Theimg & """ alt=""" & TheTitle & """ />"  & _
                 "</a>" & _
                 "</div>"
set xml = Server.CreateObject("Msxml2.DomDocument.6.0")
xml.setProperty "ServerHTTPRequest", true
xml.async = false
xml.validateOnParse = false
xml.load("http://your-rss-feed")
set xsl = Server.CreateObject("Msxml2.DomDocument.6.0")
xsl.load(Server.Mappath("yourxslfile.xsl"))
Response.Write(xml.transformNode(xsl))
set xsl = nothing
set xml = nothing