Introduction
very simple
edit your own SQL exec yourself in this code
by Zion, udanax@msn.com
sample : http://localhost/xrss.asp?FeedID=ifm_id
<BR><?xml version="1.0" encoding="EUC-KR" ?><BR><%<BR>'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''<BR>'2004 code by udanax.msn.com<BR>'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''<BR>Dim FeedID,Conn,rs,SQL,rs2, tt, cc, rr<BR> FeedID = Request("FeedID")<BR> <BR>'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''<BR>set Conn = Server.CreateObject("ADODB.connection")<BR> Conn.Open gsInfoMailConnStr<BR> SQL = "select top 1 b.sendpage_id, a.ifm_title, a.ifm_intro, a.ifm_id from ifm_info" <BR> SQL += "a inner join ifm_sendpage_info b on a.ifm_id = b.ifm_id inner join ifm_sendpage_contents_info c on b.sendpage_id = c.sendpage_id" <BR> SQL += "where a.ifm_id = '"&FeedID&"'"<BR> <BR> set rs2 = Conn.Execute(SQL)<BR> tt = rs2("ifm_title")<BR> cc = rs2("ifm_intro")<BR> rr = rs2("ifm_id") <BR> rs2.close<BR>'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''<BR>Response.ContentType = "text/xml" <BR><BR><BR> Set xmlPars = Server.CreateObject("Msxml2.DOMDocument")<BR> Set rss = xmlPars.CreateElement("rss")<BR> rss.setAttribute "version", "2.0" <BR> rss.setAttribute "xmlns:dc", "<A href="http://purl.org/dc/elements/1.1/">http://purl.org/dc/elements/1.1/</A>" <BR> rss.setAttribute "xmlns:sy", "<A href="http://purl.org/rss/1.0/modules/syndication/">http://purl.org/rss/1.0/modules/syndication/</A>" <BR> rss.setAttribute "xmlns:admin", "<A href="http://webns.net/mvcb/">http://webns.net/mvcb/</A>" <BR> rss.setAttribute "xmlns:rdf", "<A href="http://www.w3.org/1999/02/22-rdf-syntax-ns">http://www.w3.org/1999/02/22-rdf-syntax-ns</A>#" <BR> xmlPars.AppendChild(rss)<BR>'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''channel set start@<BR> Set Channel = xmlPars.CreateElement("channel")<BR> rss.AppendChild(Channel)<BR> <BR> Set title = xmlPars.CreateElement("title")<BR> Channel.AppendChild(title)<BR> Channel.childnodes(0).text = tt<BR> <BR> Set channel_link = xmlPars.CreateElement("link")<BR> Channel.AppendChild(channel_link)<BR> Channel.childnodes(1).text = "<A href="http:
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here