Click here to Skip to main content
15,887,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to save the result of rss feed to my local system.i want to save rss feed to my loal system.can any one give me the code
Posted

1 solution

Hi,

its an XML only. so you need to parse that xml file and then you can save it with the format that you want. if you need to save it as it is then you can use below code,
C#
string rssUri = "http://yourxmlfeeduri.xml";
var doc = System.Xml.Linq.XDocument.Load(rssUri);
doc.Save("filename.xml");



hope this will help you,

thanks
-amit
 
Share this answer
 
Comments
satishmachineni 18-Dec-11 0:06am    
thanks amit .it is working but it is saying proxy authentication required
AmitGajjar 18-Dec-11 2:35am    
at which line it gives you exception ?
satishmachineni 18-Dec-11 2:50am    
ya i solved it , it said proxy authentication required, i found some code.it worked .thanks
in the above code i saved that xml file ,can i use it as webservice,if so plz tell me how to use

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900