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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:52:39+00:00 2026-06-14T06:52:39+00:00

I have 3 tags called ‘Url’ in my XML feed that I am trying

  • 0

I have 3 tags called ‘Url’ in my XML feed that I am trying to extract data from using jQuery. The first 2 are image files, the other is a web link.

One is nested at this level

Offer > Images > Image > Url

Another is at this level:

Offer > Images > ZoomImage > Url

The last is at this level:

Offer > Url

If I use the following code, I only get the first URL

    $(document).ready(function(){
            $.ajax({
                type: "GET",
                url: "datafile.xml",
                dataType: "xml",
                success: function(xml) {
                    $(xml).find('Offer').each(function(){
                        var title = $(this).find('Title').text();
                        var url = $(this).find('Url').text();
                        var description =  $(this).find('Description').text();  
$('<div class="title"</div>').html('<a href="'+url+'">'+title+'</a>').appendTo('#page-wrap');
                    });

I actually want all 3 URLs returned separately to use in my code. How can I achieve this?

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-14T06:52:40+00:00Added an answer on June 14, 2026 at 6:52 am
    var url = $(this).children('Url').text();
    var urlImage = $(this).find('Images ZoomImage Url').text();
    var urlZoomImage = $(this).find('Images Image Url').text();
    

    Just be more specific in your targeting using .find() and .children()

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

Sidebar

Related Questions

I have an XML data type column called tags. In that, I am storing
I have a model that has an array of Strings called tags, public class
I have a function that reads certain tags out of an XML file. I
I have a Datatable that contains a column called Tags, Tags can have values
I have an entity that has a string property called Tags. I would like
I have an array of Card objects (NSObjects), each with a field called tags
I have a table with images and tags in it (called tbl_images ) image_file
I have a tags model that I'd like to be polymorphic, but I don't
I have strings that use simple_format so they always have p tags surrounding them.
In my repository, I have created tags using the following commands. git tag v1.0.0

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.