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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:28:43+00:00 2026-05-26T06:28:43+00:00

I have fairly large set of data returned via AJAX from a page. This

  • 0

I have fairly large set of data returned via AJAX from a page. This can be anything up to 0-20k records at once, each with around 10 peices of data inside. Now, at the moment, the data is returned in structured XML and the javascript deals with it (for the record, I’m using jQuery at the moment).

When the XML comes back, the jQuery loops through all the nodes called address (using the .find() function). It then sorts the data respectively and can take any amount of time. However it does appear the code isn’t as efficient as maybe it could be, and I don’t really have any experience handling largish data. I guess the benefit of the data being XML is we can easily integrate it into other things, eg Web services etc… but efficiency would be much better as we dont want to leave the user “hanging”. So I’m sure other people may have asked this before, but what’s more efficient – XML or JSON?

Also, which one is more useful, or are they both the same?

Sorry if it’s a lame question, this is one of the first times I’ve used JSON!

  • 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-26T06:28:44+00:00Added an answer on May 26, 2026 at 6:28 am

    JSON is a notation for serializing objects. That’s its focus and purpose. XML is for defining markup languages, but I don’t like it if people hammer that fact home as if it can’t be used for data. I find XML very suitable for representing a multitude of data structures. However, XML is rather general-purpose and that brings some overhead with it in terms of specification, notation and tool size.

    First of all, find out exactly what you need. Do you need to transfer data in a more general sense, or is passing around objects sufficient? Will you require things like namespaces? Choose a technology that does what you need, but not more than that. But do keep future expansion in mind.

    Secondly, consider the tools. XML has great support in almost any language. There’s methods for in-memory representation (DOM), object binding (JAXB in Java), parsing (SAX)… Does JSON have as much support in your target environment? On the other hand, JSON is suppremely convenient on the client-side in combination with JavaScript.

    I believe you’ll be able to do what you need regardless of technology choice, and within each choice there’s room for optimization. But there’s one final thing to consider: maybe you don’t have to choose. Sometimes it can be really simple to allow data to be serialized as JSON or XML. Being a Java programmer, this is the only example I can come up with, but in JAX-WS there are methods for getting data from webservices as XML, JSON or maybe even other formats with minimal code adaptation.

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

Sidebar

Related Questions

I have a problem retrieving items from a fairly large list. I can quickly
I have a fairly large set of Core Data entities with a date property.
I have a fairly large Excel file. In this file there is a column
I have been very stumped by this one. I have a fairly large (~1500
I have a large data-set of emails sent and status-codes. ID Recipient Date Status
Let's say I have a fairly large IList<foo> where foo looks like this: public
I have a fairly large CRUD winform app that is set up to display
I have a fairly large page, which contains lots of css and html. The
I'm struggling to find a suitable solution to this. I have a fairly large
We have a fairly large member site set up on AWS using a medium

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.