Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 853799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:49:14+00:00 2026-05-15T07:49:14+00:00

I do not want to load it from a website I have added it

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T07:49:14+00:00Added an answer on May 15, 2026 at 7:49 am

    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:

    StringReader stream = new StringReader(e.Result);
    XmlReader reader = XmlReader.Create(stream);
    
    while (reader.Read())
    {
        // Do stuff
    }
    

    The xml file is downloading using this code:

    Uri url = new Uri("MapImages.xml", UriKind.Relative);
    WebClient client = new WebClient();
    client.DownloadStringCompleted +=
            new DownloadStringCompletedEventHandler(client_DownloadStringCompleted);
    client.DownloadStringAsync(url);
    

    From the DownloadStringAsync MSDN page:

    After downloading the resource, this method uses the encoding specified in the Encoding property to convert the resource to a String. This method does not block the calling thread while downloading the resource. To download a resource and block while waiting for the server’s response, use the DownloadString method. When the download completes, the DownloadStringCompleted event is raised. Your application must handle this event to receive notification. The downloaded string is available in the Result property.

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this div: <div class=inauguration-image> I do not want this text to display,
I do not want TortoiseSVN to alert me with sounds - e.g. when it
I do not want to alienate my users, but having multiple ways to sign
Right up front: I do not want to start a religious war. I've used
-Wall enables a warning I do not want, specifically -Wunknown-pragmas . How to tell
Is there ever a circumstance in which I would not want to use the
Assuming a MySQL datastore, when would you NOT want to use memcached in a
I would like a class to implement an interface, I do not want to
I need to build SSIS packages on a build machine, and do not want
OK, I know what you're thinking, "why write a method you do not want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.