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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:56:30+00:00 2026-05-26T00:56:30+00:00

I have 2 large XML files: Car data (id, name, image, etc). Deals (car_id,

  • 0

I have 2 large XML files:

  1. Car data (id, name, image, etc).
  2. Deals (car_id, miles, speed, etc)

At the moment I firstly read the Car XML using jQuery AJAX and generate the relevant HTML.

The problem is that next I need to read in the Tariff XML which has the car_id, although I would like to get the car image. How can I go about saving the car_id and image in temporary memory without reading the XML file again to find the image?

$.ajax({
    type: "GET",
    url: carXmlPath,
    dataType: "xml",
    contentType: "text/xml; charset=utf-8",
    success: function(xml){
        carCarousel.html("");
        $(xml).find("car").each(function(index, value){
            var tis = $(this), first = '';
            if(index == 0) first = ' class="selected"';
            carCarousel.append('<li'+first+' data-id="'+tis.find("id").text()+'">' + tis.find("name").text() + tis.find("thumbnail").text() + '</li>');
        }); 
        carCarousel.removeClass("loading");
    }           
});

I know this should all be implemented on the server but that is not an option here, it has to be done in JS.

  • 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-26T00:56:31+00:00Added an answer on May 26, 2026 at 12:56 am

    If you’re creating document fragments to attach to the DOM, then I would use data islands.

    E.g. data-car-img and data-car-id.

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

Sidebar

Related Questions

I have several fairly large XML files that represent data exported from a system
I have written a simple C++ shell program to parse large XML files and
I have a very large XML file which has like 40000 data, and when
I have a large XML, looking like this: <gender>M</gender> <last-name>*</last-name> <profession>2165dda2-dc59-41af-acb5-06d8914c4841</profession> <first-name>*</first-name> <mail-confirmation>1</mail-confirmation> <fax-confirmation>1</fax-confirmation>
I have to send a large amount of xml data through sockets. Example of
I have 16 large xml files. When I say Large, I am talking in
I have a directory of very large XML files with a structure as this:
I need to pre-compress some very large html/xml/json files (large data dumps) using either
I have to parse large XML files in php, one of them is 6.5
I have a php script that parses XML files and creates a large SQL

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.