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 9054235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:38:19+00:00 2026-06-16T13:38:19+00:00

I am working on a ASP.NET website and I need to get XML from

  • 0

I am working on a ASP.NET website and I need to get XML from an external url. It works great using ASP.NET MVC’s XmlDocument but now I need to parse the XML without going to the server again, so client-side. An example of what I want to do:

Presume we have 3 <select> dropdownlists, the first one contains all carmakes, the second one contains all car models and the third one all types. So, when the page loads, we have the first dropdown with all carmakes and the other two are disabled. When I select a make, I want to load all models of the selected make (dropdown nr. 3 still disabled). Then when I select a car model, I want to load all types of the selected model.

All makes can be loaded by ASP.NET’s XmlDocument which works fine already, but the other data needs to be parsed client-side. I tried this using jQuery:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR...nsitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
        <script type="text/javascript">
            $(document).ready(function(){
                $.ajax({
                    type: "GET",
                    url: "-- hidden --",
                    dataType: "xml",
                    success: parseXml
                });

                function parseXml(xml){
                    $(xml).find("Make").each(function(){
                        $("#output").append($(this).find("carmake").text() + "<br />");
                    });
                }
            });
        </script>
    </head>
    <body>
        <div id="output"></div>
    </body>
</html>

But that doesn’t work. I read a lot of questions where the sulution was to use crossDomain: true and dataType: jsonp but that doesn’t work either. I also read the server I’m getting the XML from needs to support jsonp, but there is no way I can do something about that, because it is not my server but a webservice.

As you may have already seen, the sample-url to get all makes is -- hidden --/make.alx. Then when the user selected a make, I can get the models of the make by sending the carcode in the url, for example: -- hidden --/model.alx?carcode=2

So in short the question is: How can I get this working with jQuery if possible and if not, how can I get this working another way? I there a nice way to do this using ASP.NET MVC but without having the whole page reloaded?

This website is a nice example of what I want. As you can see here just under the header you can select a car make, model and type.

Thanks in advance!

  • 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-06-16T13:38:20+00:00Added an answer on June 16, 2026 at 1:38 pm

    Not possible through jQuery, but you can create a proxy page for this in your website.

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

Sidebar

Related Questions

I am working on a ASP.NET MVC website using Nhibernate as my ORM. The
I am working on an ASP.NET website with sql server 2008 R2. i need
I'm working with a intranet website written in ASP.NET and need to be able
I am using jquery in my asp.net website. It was working fine in my
I'm working on an ASP.Net project to display information on a website from a
I am using MS VS 2010, and working on an ASP.NET C# website. I
I am working on a website in asp.net mvc. I have a route routes.MapRoute(
I'm working on a website (asp.net, webforms, all https) and I need to setup
My ASP.NET MVC 3 website was working fine, and then this afternoon I started
I'm currently working on an ASP.NET Website where I want to retrieve data from

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.