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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:30:04+00:00 2026-05-16T04:30:04+00:00

I asked an earlier question which was definitely helpful and let me know about

  • 0

I asked an earlier question which was definitely helpful and let me know about JSONP. However, I see that I have to specify JSONP as the datatype. Now, as far as I know, that is the return type of the data coming back, which would be XML. Can XML be returned using JSONP or am I limited to it coming back as JSONP format? Thanks!

  • 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-16T04:30:04+00:00Added an answer on May 16, 2026 at 4:30 am

    You’re limited to JSONP (and not XML) because of how it works. JSONP turns into this:

    <script src="myPage?callback=myFunction" type="text/javscript">
    

    So when you take the content, it’s effectively doing this:

    <script type="text/javascript">
      myFunction({ data: value, data2: value2 });
    </script>
    

    What comes back is actual running JavaScript, so it can’t be XML, you’ll get all sorts of syntax errors, exactly as you would doing this:

    <script type="text/javascript">
      <elem>
        <data>value</data>
        <data2>value2</data2>
      </elem>
    </script>
    

    As you can imagine, the JavaScript parser isn’t going to like that very much, and doesn’t know what to do with it. jQuery can parse XML in most cases without any trouble, but if you’re using JSONP and it’s for cross-domain requests…well JSONP is your only option there, unless you wrote a proxy page on your site that didn’t violate same-origin policy rules, and used it as a proxy to fetch the XML through.

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

Sidebar

Related Questions

I asked a question earlier about which language to use for an AI prototype.
I know I have asked this question in a different manner earlier today but
I asked a question earlier which elicited some great responses. Here's the earlier question
Ok, I asked a question earlier about Flex and ADO.NET Data Services but didn't
I had asked an earlier question which did not get any replies. Basically I
This question relates to this question which I asked earlier this week. The answer
Earlier today I asked this question which arose from A- My poor planning and
Related to a question I asked earlier here , I've found a problem which
This is a follow-up to a question I'd asked earlier which phrased this as
In an earlier question I asked about sanitizing postal street addresses, one of the

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.