ASP.NET伏撹RSS Feed
作者 佚名技术
来源 NET编程
浏览
发布时间 2012-05-21
uot;language", LANGUAGE); 216 rssWriter.WriteString("n "); 217 rssWriter.WriteElementString("copyright", COPYRIGHT); 218 rssWriter.WriteString("n "); 219 rssWriter.WriteElementString("generator", GENERATOR); 220 rssWriter.WriteString("n "); 221 // Write in image block 222 rssWriter.WriteStartElement("image"); 223 rssWriter.WriteString("n "); 224 rssWriter.WriteElementString("url", IMAGE_URL); 225 rssWriter.WriteString("n "); 226 rssWriter.WriteElementString("title", IMAGE_TITLE); 227 rssWriter.WriteString("n "); 228 rssWriter.WriteElementString("link", IMAGE_LINK); 229 rssWriter.WriteString("n "); 230 rssWriter.WriteEndElement(); 231 rssWriter.WriteString("n "); 232 } 233 234 /**//// <summary> 235 /// Write in items 236 /// </summary> 237 private void WriteItem(ItemInfo item) 238 { 239 // Write in item block 240 rssWriter.WriteStartElement("item"); 241 rssWriter.WriteString("n "); 242 rssWriter.WriteElementString("title", item.ItemTitle); 243 rssWriter.WriteString("n "); 244 rssWriter.WriteElementString("link", item.ItemLink); 245 rssWriter.WriteString("n "); 246 247 rssWriter.WriteStartElement("description"); 248 rssWriter.WriteString("n "); 249 rssWriter.WriteCData(item.ItemDescription); 250 rssWriter.WriteString("n "); 251 rssWriter.WriteEndElement(); 252 253 rssWriter.WriteString("n "); 254 rssWriter.WriteElementString("pubDate", item.ItemPubDate); 255 rssWriter.WriteString("n "); 256 rssWriter.WriteElementString("dc:date.Taken", item.ItemDateTaken); 257 rssWriter.WriteString("n "); 258 rssWriter.WriteElementString("author", item.ItemAuthor); 259 rssWriter.WriteString("n "); 260 rssWriter.WriteStartElement("guid"); 261 rssWriter.WriteAttributeString("isPermaLink", "false"); 262 rssWriter.WriteString(item.ItemGuid); 263 rssWriter.WriteEndElement(); 264 265 266 // Write item media here 267 268 } 269 270 /**//// <summary> 271 /// Write in item media 272 /// </summary> 273 /// <param name="item">ItemInfo item</param> 274 private void WriteItemMedia(ItemInf |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
上一篇: asp.net关于文件在数据库的存入和读取下一篇: 使用ASP.Net中的自定义控件
关于ASP.NET伏撹RSS Feed的所有评论