vb.net rss xml parse node to winform?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I have this URL that has XML that does not have unique XML tags. Example:
<pre class="prettyprint <?xml version="1.0" encoding="UTF-8" ?>
- <rss version="2.0
- <channel>
<title>Kansas Lottery - Latest Winning Numbers</title>
<link>http://www.us-lotteries.com/Kansas/</link>
<description>Kansas Lotteries - Most Recent Winning Numbers</description>
<language>en-us</language>
<lastBuildDate>Tue, 27 Nov 2012 21:11 GMT</lastBuildDate>
- <item>
<title>Mega Millions: Tue, Nov 27</title>
<link>http://www.us-lotteries.com/kansas/mega_millions/</link>
<description>== 05-12-26-42-49**24x4 == Mega Millions analysis for the last 100 draws - Most frequently drawn numbers : 9 36 ; Least frequently drawn numbers : 7 25 41 54 56 ; numbers not drawn in the last 22 draws : 2 19 25 27 28 30 41 45 54 ; most frequently drawn ball numbers : 11 34 ; Least frequently drawn ball numbers : 10 12 18 41 43 ; ball numbers not drawn in the last 69 draws : 10 12 14 18 23 35 41 43 46 . <br> Check out analysis of the 776 previous winning numbers since June 24 2005 at US-Lotteries.com/kansas/mega_millions/</description>
<pubDate>Tue, 27 Nov 2012 21:11 GMT</pubDate>
<guid isPermaLink="true http://www.us-lotteries.com/kansas/mega_millions/</guid>
</item>
- <item>
<title>Powerball: Sat, Nov 24</title>
<link>http://www.us-lotteries.com/kansas/powerball/</link>
<description>== 22-32-37-44-50**34 == Powerball analysis for the last 100 draws - Most frequently drawn numbers : 56 59 ; Least frequently drawn numbers : 2 9 12 25 27 37 40 ; numbers not drawn in the last 24 draws : 11 12 38 46 47 53 ; most frequently drawn ball numbers : 33 ; Least frequently drawn ball numbers : 9 15 17 31 36 37 38 39 ; ball numbers not drawn in the last 58 draws : 7 9 11 15 17 24 31 36 37 38 39 . <br> Check out analysis of the 1572 previous winning numbers since November 5 1997 at US-Lotteries.com/kansas/powerball/</description>
<pubDate>Tue, 27 Nov 2012 21:11 GMT</pubDate>
<guid isPermaLink="true http://www.us-lotteries.com/kansas/powerball/</guid>
</item>
</channel>
</rss>[/code]
My question is what is the best way to parse one node to a winform? I have found examples to loop and display all nodes but I want to just display Mega Millions: description or better yet just the winning numbers for example. any help is greatly
appreciated.



View the full article
 
Back
Top