bill

msg:4089086 | 4:25 am on Mar 1, 2010 (gmt 0) |
Welcome to WebmasterWorld radermacgk12. It's been a while since I've worked with Access, so I won't give you good specifics on that end. However, you should be able to output data to a file that puts data into an RSS or Atom template. For example, you could use the RSS 2.0 Specification [cyber.law.harvard.edu] as a guideline to make a template for the output file. Then you just need to add the appropriate information fields from your database into the corresponding areas of the template.
|
dukelips

msg:4089099 | 5:46 am on Mar 1, 2010 (gmt 0) |
bill , is it possible to use an asp file as a feed
|
bill

msg:4089114 | 6:34 am on Mar 1, 2010 (gmt 0) |
It's an XML file being output, but you could use anything from PHP to ASP to create the file, as long as the final format is correct.
|
mack

msg:4089117 | 6:53 am on Mar 1, 2010 (gmt 0) |
I can't comment to much on asp specificaly, but you can use almost any server side scripting language to create an xml file. I have done this in the past using php. What I did was create a file called feed.xml this file was in fact a php file with an xml file extension. I was then able to set up the server so that xml was handled in the same way php would be. When a request was made for feed.xml the php file did its stuff, queried the database and created the output. To the browser or application that was requesting feed.xml they just saw xml output. If you set up your script to create xml style output, and have an xml extenson to the end user/applicaion it will be as good as a true xml file. Mack.
|
dukelips

msg:4089872 | 10:36 am on Mar 2, 2010 (gmt 0) |
<?xml version="1.0" encoding="ISO-8859-1"?> <% Response.Buffer = true Response.ContentType = "text/xml" Function ApplyXMLFormatting(strInput) strInput = Replace(strInput,"&", "&") strInput = Replace(strInput,"'", "'") strInput = Replace(strInput,"""", """) strInput = Replace(strInput, ">", ">") strInput = Replace(strInput,"<","<") ApplyXMLFormatting = strInput End Function %> <rss version="2.0"> <channel> <title></title> <link></link> <description></description> <language>en-us</language> <copyright>All Rights Reserved.</copyright> <lastBuildDate><%=Now()%></lastBuildDate> <ttl>20</ttl> <% Dim objConn Set objConn = Server.CreateObject("ADODB.Connection") objConn.ConnectionString = Application("forum_system_dsn") objConn.Open Dim objRS, strSQL, strDesc strSQL = "sp_GetTop25Posts" Set objRS = objConn.Execute(strSQL) Do While Not objRS.EOF strDesc = "<b>Message by " & objRS("MsgAuthor") & " on " & _ objRS("MsgDate") & " EST</b><br>" & _ objRS("MsgResponse").Value %> <item> <title><%=ApplyXMLFormatting(objRS("MsgTitle").Value)%> (<%=ApplyXMLFormatting(objRS("MsgAuthor").Value)%>) </title> <link>http://www.aspmessageboard.com/forum/showMessage.asp?F= <%=objRS("ForumID")%>&P=1&M=<%=objRS("MsgID")%></link> <description><%=ApplyXMLFormatting(strDesc)%></description> <datePosted><%=ApplyXMLFormatting(objRS("MsgDate"))%></datePosted> </item> <% objRS.MoveNext Loop objRS.Close Set objRS = Nothing objConn.Close Set objRS = Nothing Set objConn = Nothing %> </channel> </rss>
|
dukelips

msg:4089873 | 10:36 am on Mar 2, 2010 (gmt 0) |
The File should be saved as an asp file
|
bill

msg:4090436 | 5:58 am on Mar 3, 2010 (gmt 0) |
No. The file should be saved as XML. You just need to let the server know how to parse the XML file as ASP.
|
dukelips

msg:4091156 | 1:08 am on Mar 4, 2010 (gmt 0) |
feedburner accepts the asp file as input. if it saved as a xml file, how it will fetch data from the server side
|
bill

msg:4091162 | 1:18 am on Mar 4, 2010 (gmt 0) |
There are ways to get your webserver to parse other pages just as if they were ASP. You just need to configure your server to know that .XML files should be parsed the same way an .ASP page would.
|
dukelips

msg:4091220 | 4:25 am on Mar 4, 2010 (gmt 0) |
is it mandatory to have the feed as .xml file . can it be .rss file. Still the feeds appear in feedburner
|
bill

msg:4091225 | 4:55 am on Mar 4, 2010 (gmt 0) |
Feedburner is really off-topic to this thread. If you want to make an RSS feed from an Access database then you would want to output an XML file in the format of the RSS specification linked to above.
|
dukelips

msg:4091243 | 5:36 am on Mar 4, 2010 (gmt 0) |
bill, but do the feed aggregators accept files other than .xml as feeds(if they comply to the specs)
|
bill

msg:4091250 | 6:06 am on Mar 4, 2010 (gmt 0) |
I'm not sure what you're asking I guess. If the file complied with the XML specs then it would be an XML file.
|
|