What I'd like to do is take the contents of our news database, write it dynamically into an xml file, then write a page to display the feed.
So far, I've gotten the part to write the xml file to work, but am having a problem with part 2. One of the tutorials I came across suggested using the following:
Except I get a message saying "This XML file does not appear to have any style information associated with it. The document tree is shown below."
Any ideas or suggestions as to what I'm doing wrong? I thought I set up a valid style file...
Thanks in advance.
Michelle
So far, I've gotten the part to write the xml file to work, but am having a problem with part 2. One of the tutorials I came across suggested using the following:
Code:
<%
Function getXML(sourceFile)
dim styleFile
dim source, style
styleFile = Server.MapPath("/admission/rss/news.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
Response.ContentType = "text/xml"
%>
Except I get a message saying "This XML file does not appear to have any style information associated with it. The document tree is shown below."
Any ideas or suggestions as to what I'm doing wrong? I thought I set up a valid style file...
Thanks in advance.
Michelle