I do not want to load it from a website I have added it to my project all I want to do is access it and read it. Can anyone help!
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve found a blog post by Mike Snow which describes one method. The code’s a bit long to quote in full, but here’s the relevant section:
The xml file is downloading using this code:
From the
DownloadStringAsyncMSDN page:So it downloads the file to your temporary internet files folder (or cache depending on browser) and then passes the file as a string to the event handler, where you can read it using
StringReader.