I've got an XML feed that I'm trying to write out in an asp page (I'll confess this is the first time I've tried this).
The xml looks good, but the code I have on the asp page won't display the feed:
<!--#include file="subWriteRss.asp"-->
<%
Function getXML(sourceFile)
dim styleFile
dim source, style
styleFile = Server.MapPath("rss.xsl")
Dim xmlhttp
Set xmlhttp = Server.CreateObject("Microsoft.XMLHTTP")
xmlhttp.Open "GET", sourceFile, false
xmlhttp.Send
set source = Server.CreateObject("Microsoft.XMLDOM")
source.async = false
source.loadxml(xmlhttp.ResponseText)
set style = Server.CreateObject("Microsoft.XMLDOM")
style.async = false
style.load(styleFile)
getXML = source.transformNode(style)
set source = nothing
set style = nothing
End Function
%>
<html>
<body>
<%= getXML(" %>
</body>
</html>
Does anything look inherently strange? Or is it something I'm doing wrong with the XML portion?
Thanks in advance for any advice...
The xml looks good, but the code I have on the asp page won't display the feed:
<!--#include file="subWriteRss.asp"-->
<%
Function getXML(sourceFile)
dim styleFile
dim source, style
styleFile = Server.MapPath("rss.xsl")
Dim xmlhttp
Set xmlhttp = Server.CreateObject("Microsoft.XMLHTTP")
xmlhttp.Open "GET", sourceFile, false
xmlhttp.Send
set source = Server.CreateObject("Microsoft.XMLDOM")
source.async = false
source.loadxml(xmlhttp.ResponseText)
set style = Server.CreateObject("Microsoft.XMLDOM")
style.async = false
style.load(styleFile)
getXML = source.transformNode(style)
set source = nothing
set style = nothing
End Function
%>
<html>
<body>
<%= getXML(" %>
</body>
</html>
Does anything look inherently strange? Or is it something I'm doing wrong with the XML portion?
Thanks in advance for any advice...