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

  • Home
  • SEARCH
  • 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 8453939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:53:41+00:00 2026-06-10T11:53:41+00:00

I know the below question is very common , but i cant help myself

  • 0

I know the below question is very common , but i cant help myself posting here , since am little confused of what am doing in my code …

I am sending an AJAX request and getting XML as response ,
As of now am parsing it based on the tag name like below :

$(xml).find('Details').each(function(){
                        //email=$(this).find('Email').text();
                         $tbl.append($('<tr>').append(

                             $('<td>').text($(this).find('name').text()),
                             $('<td>').text($(this).find('LastName').text()),
                             $('<td>').text($(this).find('City').text()),
                             $('<td>').html("<a href='insert.jsp?email="+$(this).find('Email').text()+"&mode=Search"+" ' >"+$(this).find('Email').text()+"</a>"),
                             $('<td>').html("<a href='MyServlet?email="+$(this).find('Email').text()+"&mode=Delete"+" ' >"+"Delete"+"</a>")
                             ));
                }); 

The functionality what am trying to do is absolutely working fine ,

Problem :

How to parse the XML response dynamically without knowing the tag name or the parent ?

i referred the below links for that :
[XML Parsing with jQuery]

And i have to use only jquery :
any kind of help is appreciable ..
Thank You

  • 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-10T11:53:43+00:00Added an answer on June 10, 2026 at 11:53 am

    Take a look through the Traversing API

    There are quite a few functions where you can parse and move through the XML without actually knowing the tags. Some key ones for you would be children() next() siblings() and as you already know each()

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

Sidebar

Related Questions

I know this is a very simple question for you experts,but please forgive me.Im
I know my question is very basic but somehow my code is not working.
I know this is very easy question, but I couldn't find the answer anywhere.
I know this is a very stupid question to ask but i have a
I know this may be a very basic question, sorry if it is but
I have been given the below .NET question in an interview. I don’t know
Question: I receive the following error for the code below, does anyone know why?
I know that technically all three ways below are valid, but is there any
Sorry if the question is very naive. I will have to check the below
I have a very simple question. I want to write the below line of

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.