Bonjour à tous,

Voilà j'aimerai récupérer le contenu d'un flux Rss dans un Document XML mais j'ai du mal de trouver quelque chose sur le net.

j'ai fait une première tentative avec le SyndicationFeed

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
SyndicationFeed feed = new SyndicationFeed("flux Lotto", "tirages du Lotto", new Uri("http://lotto.be/FR/RSS/lotto.xml"));
            XmlWriter xmlwriter = XmlWriter.Create(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "\\LottoVerification\\TiragesTmp.xml");
            Atom10FeedFormatter rssFormatter = new Atom10FeedFormatter(feed);
            rssFormatter.WriteTo(xmlwriter);
            xmlwriter.Close();
mais voici le résultat, c'est à dire rien

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
 
 
<?xml version="1.0" encoding="UTF-8"?>
-<feed xmlns="http://www.w3.org/2005/Atom"><title type="text">flux Lotto</title><subtitle type="text">tirages du Lotto</subtitle><id>uuid:4c332894-a11f-4cac-b924-9f6a665f672d;id=1</id><updated>2011-08-25T20:32:46Z</updated><link href="http://lotto.be/FR/RSS/lotto.xml" rel="alternate"/></feed>
Suis-je parti dans la bonne direction? Y a-t-il plus simple?

Merci