I am trying to have my Web Application get a Xml Rss feed and save it to a directory in my Web Application directory? My Web application is at DiscountASP and I have changed the URL, in the example, for security reasons. I will plug in my correct site URL in the "NameChangedForExample" position Can someone Please tell me if "http://www.NameChangedForExample.com/default.aspx/MyRssFeed/mod_latest.rss" is the correct path (See myXmlDoc.Save() below) Here is the code if that helps ******** Dim myXmlDoc As XmlDocument = Nothing myXmlDoc = New XmlDocument() myXmlDoc.Load("http://www.SomeRssfeed.com/rss-num.xml") Is this the correct path to save in my Web Application directory myXmlDoc.Save("http://www.NameChangedForExample.com/default.aspx/MyRssFeed/mod_latest.rss") ******** Thanks albanello
I assumed you want to read some rss feed from somewhere and save it as xml file in your site. The code you are using is not correct because you want to save it to the file system rather than an http address You would do something like this myXmlDoc.Save(Server.MapPath("~\MyRssFeed\mod_latest.rss")) This will save the XML file to the \myRssFeed folder (of the app root)
FrankC Thank you very much! I wanted to make sure I had it right before I published the new code, so I did not bring the site down. Thanks again FrankA