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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:50:00+00:00 2026-06-05T10:50:00+00:00

So I am not really sure how to do this and it seems pretty

  • 0

So I am not really sure how to do this and it seems pretty pretty trivial but I am getting an rss feed back and all I want to do is loop through a set of each elements that have children but I cannot seem to figure out how to get the values. My xml looks like this:

<rss>
    <item>
        <title>Test</title>
        <picture>Test</picture>
    </item>
    <item>
        <title>Test 1</title>
        <picture>Test 1</picture>
    </item>
</rss>

My jquery looks like this:

$(document).ready(function() {
    var FEED_URL = "myFeedUrl";
    $.ajax({
        url : FEED_URL,
        type : "GET",
        success : function(xml) {
            var item = $(xml).find('item').children();
            $(item).children().each(function() {
                var title = $(item).children().find('title').text();
                            //do something
            });

        }
    });
});

I am able to loop through it and get the ‘item’ element. But I want to loop through the children elements but I am not sure how to get the actual value! I thought I could do find such as:

var title = $(item).children().find('title').text();

But that doesn’t seem to work.

  • 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-05T10:50:02+00:00Added an answer on June 5, 2026 at 10:50 am

    This should do it.

            var item = $(xml).find('item');
            $(item).each(function(index, value) {
                var title = $(value).children('title').text();
            });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

OK, not really sure if this is possible but thought I'd ask anyway :)
I know this is possible but I'm not really sure where to start. Has
I feel like there's a simple solution to this, but I'm not really sure
I am not sure how to really word this, but I have a game
I am not really sure what this method does, or better I am not
Not really sure how to phrase this other than by example.. Given... DATABASES =
I'm not really sure how to word this exactly, so hopefully someone can make
I'm not really sure how to get started on this and I sure could
Sorry, I'm not really sure of the right way to ask this one so
Not really too sure how to word this question, therefore if you don't particularly

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.