Quantcast
Channel: XML to string (C#) - Stack Overflow
Viewing all articles
Browse latest Browse all 4

XML to string (C#)

$
0
0

I have a XML loaded from a URL like this:

WebClient client = new WebClient();client.Encoding = Encoding.UTF8;try{    string reply = client.DownloadString("http://Example.com/somefile.xml");    label1.Text = reply;}catch{    label1.Text = "FAILED";}

That XML belongs to a RSS Feed. I want that label1.Text shows just the titles of that XML. How can I achieve that?

Example of label1.Text

This is my first title    -    This is my 2nd title    -    And this is my last title

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images