orangeblue
Programmer
Hiya
I just leant and created a xml feed, Its working fine in firefox, all the info are showing, but when I tried to run it in explorer i find that it says error page not found.
Does any one know why? I have included my code
thanks in advance
Hesh
<%
' Write out the XML Version Identifier, Document Type
' Identifier, RSS Version Identifier and Start Channel Data
' tag.
%>
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "<rss version="0.91">
<channel>
<%
' Write out the Channel Title tag, Channel Title Link (URL)
' tag, Channel Description tag, Channel Language tag, Start
' Image Data tag, Image ALT Text tag, Image Location (URL) tag,
' Image Link (URL) tag and End Image Data tag.
' Change the information within these tags to suit your
' website.
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.cursorlocation=3
objconn.Open "DSN=IUSR_INVSHQ00157D;"
strsql = "select top 15 content_id, content_title, content_description from tble_content innner join tble_content_type on content_catergory_id = content_type_id where content_type = 'latest news' and content_active=1 order by content_date_entered DESC"
Set artRec = objConn.execute(strsql)
x=0
while not artRec.eof
if x < 15 then
title = artRec("content_title")
shortdesc = artRec("content_description")
title = replace(title,"<br>","<br/>")
shortdesc = replace(shortdesc,"<br>","")
response.write "<item>"
response.write "<title>Invensys</title>"
%>
<description>
<%= shortdesc %>
</description>
<%
response.write "<link> artRec("content_id") &"</link>"
response.write "</item>"
end if
x=x+1
artRec.movenext
wend
set artRec = nothing
objConn.close
set objConn = nothing
%>
</channel>
</rss>
I just leant and created a xml feed, Its working fine in firefox, all the info are showing, but when I tried to run it in explorer i find that it says error page not found.
Does any one know why? I have included my code
thanks in advance
Hesh
<%
' Write out the XML Version Identifier, Document Type
' Identifier, RSS Version Identifier and Start Channel Data
' tag.
%>
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "<rss version="0.91">
<channel>
<%
' Write out the Channel Title tag, Channel Title Link (URL)
' tag, Channel Description tag, Channel Language tag, Start
' Image Data tag, Image ALT Text tag, Image Location (URL) tag,
' Image Link (URL) tag and End Image Data tag.
' Change the information within these tags to suit your
' website.
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.cursorlocation=3
objconn.Open "DSN=IUSR_INVSHQ00157D;"
strsql = "select top 15 content_id, content_title, content_description from tble_content innner join tble_content_type on content_catergory_id = content_type_id where content_type = 'latest news' and content_active=1 order by content_date_entered DESC"
Set artRec = objConn.execute(strsql)
x=0
while not artRec.eof
if x < 15 then
title = artRec("content_title")
shortdesc = artRec("content_description")
title = replace(title,"<br>","<br/>")
shortdesc = replace(shortdesc,"<br>","")
response.write "<item>"
response.write "<title>Invensys</title>"
%>
<description>
<%= shortdesc %>
</description>
<%
response.write "<link> artRec("content_id") &"</link>"
response.write "</item>"
end if
x=x+1
artRec.movenext
wend
set artRec = nothing
objConn.close
set objConn = nothing
%>
</channel>
</rss>