article de presse - Cap Data Consulting
article de presse - Cap Data Consulting
article de presse - Cap Data Consulting
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
P ratique<br />
Response.ContentType = "text/xml"<br />
feed.Write(Response.OutputStream)<br />
Response.End()<br />
Un exemple pratique en C#<br />
Commençons par créer une dll qui aura pour fonction <strong>de</strong> placer dans un<br />
tableau tous les titres du canal dont l'URL lui est passé comme argument.<br />
BiblioRSS.cs<br />
using System;<br />
using Rss;<br />
namespace BiblioRSS<br />
{<br />
public class CanalRss<br />
{<br />
RssFeed f;<br />
public CanalRss(string url)<br />
{<br />
}<br />
f=RssFeed.Read(url);<br />
public string NomDuFilRSS<br />
{<br />
}<br />
get<br />
{<br />
}<br />
return f.Channels[0].Title;<br />
public string[] TableauFilRSS<br />
{<br />
}<br />
get<br />
{<br />
}<br />
string[] t=new string[f.Channels[0].Items.Count];<br />
for (int i=0;i