# How to download an xml file by using .NET 4.0 C# and Silverlight( the IDE is VS2010)?

**URL:** <https://forum.kirupa.com/t/how-to-download-an-xml-file-by-using-net-4-0-c-and-silverlight-the-ide-is-vs2010/311838>\
**Category:** programming\
**Created:** [July 17, 2010, 7:35pm UTC](https://forum.kirupa.com/t/how-to-download-an-xml-file-by-using-net-4-0-c-and-silverlight-the-ide-is-vs2010/311838 "2010-07-17T19:35:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashley2010](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@ashley2010](https://forum.kirupa.com/u/ashley2010)\
**Post date:** [July 17, 2010, 7:35pm UTC](https://forum.kirupa.com/t/how-to-download-an-xml-file-by-using-net-4-0-c-and-silverlight-the-ide-is-vs2010/311838/1 "2010-07-17T19:35:49Z")

</div>

Hello Kirupa,

please read my message. I follo your tutorial, and I never have any problem; however, this time, I was not able to see some result of your tutorial on “How to download an XML file in Silverlight?”—  
[http://www.kirupa.com/blend\_silverlight/loading\_xml\_sl2\_pg1.htm](http://www.kirupa.com/forum/../blend_silverlight/loading_xml_sl2_pg1.htm)

I am using Visual Studio 2010  
and .NET 4 with C#.  
The tutorial is at:  
[http://www.kirupa.com/blend\_silverlight/loading\_xml\_sl2\_pg1.htm](http://www.kirupa.com/forum/../blend_silverlight/loading_xml_sl2_pg1.htm)  
I cannot see the downloaded content of the xml file in the messagebox or in the HtmlPage.Window.Alert(xmlData);

I am trying to make a rss feed by using silverlight. My rss feed is from:

[http://rss.msnbc.msn.com/id/3032127/device/rss/rss.xml](http://rss.msnbc.msn.com/id/3032127/device/rss/rss.xml)

which has some image and the images are not part of the itemCollection; therefore, I believe that I need to download the whole xml file as a string to process, but I cannot download the xml file as I cannot see anything in message box or in the HtmlPage.Window.Alert(…);

I have also downloaded your tutorial zip folder and after I have pressed F5, as you have suggested in the second page, nothing happens.

Please tell me how to download a remote xml file as a string by using .NET 4.0 C#, where the IDE is VS 2010, in a Silverlight application.
