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

  • SEARCH
  • Home
  • 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 897289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:51:47+00:00 2026-05-15T14:51:47+00:00

Given this URL: http://www.dreamincode.net/forums/xml.php?showuser=1253 How can I download the resulting XML file and have

  • 0

Given this URL:

http://www.dreamincode.net/forums/xml.php?showuser=1253

How can I download the resulting XML file and have it loaded to memory so I can grab information from it using Linq?

Thanks for the 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-15T14:51:48+00:00Added an answer on May 15, 2026 at 2:51 pm

    Load string:

    string xml = new WebClient().DownloadString(url);
    

    Then load into XML:

    XDocument doc = XDocument.Parse(xml);
    

    For example:

    [Test]
    public void TestSample()
    {
        string url = "http://www.dreamincode.net/forums/xml.php?showuser=1253";
        string xml;
        using (var webClient = new WebClient())
        {
            xml = webClient.DownloadString(url);
        }
    
        XDocument doc = XDocument.Parse(xml);
    
        // in the result profile with id name is 'Nate'
        string name = doc.XPathSelectElement("/ipb/profile[id='1253']/name").Value;
        Assert.That(name, Is.EqualTo("Nate"));
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://www.dreamincode.net/forums/xml.php?showuser=335389 Given the XML above, how can I iterate through each element inside of
Given this XML file: <?xml version=1.0 encoding=UTF-8?> <root> <data> <track clipid=1> <url>http://www.emp3world.com/to_download.php?id=33254</url> <http_method>GET or
xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation How is this url mapped to .NET namespaces? Can you give an example
Given an URL such as this one, http://www.example.com/some directory/some file how do you encode
Given this link: http://www.argenteam.net/movie/40749/American.Reunion.%282012%29 I'm trying to get all links like this on that
I need a certain part of a URL extracted. Example: http://www.domain.com/blog/entry-title/?standalone=1 is the given
Given a url, and a query string, how can I get the url resulting
Given I have a URL like http://www.example.com/example.json And I would like to check the
here is my url http://www.mydomain.com/browse.php?type=3d&subtype=started&ref=foo how an i convert this to... http://www.mydomain.com/browse/3d/start/foo i have
Given a series of URLs http://www.anydotcom.com/myfolder/some-url.html http://www.anydotcom.com/myfolder2/index.html# http://www.anydotcom.com/myfolder3/index.html?someParam=aValue http://www.anydotcom.com/foldername/index.html?someParam=anotherValue First, how could I strip

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.