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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:06:45+00:00 2026-05-21T14:06:45+00:00

in my app i am sending when i click a button it goes on

  • 0

in my app i am sending when i click a button it goes on to a url and it returns back an xml file. The xml file is as follows

<search>
     <data>
      <userid>1</userid>
          <name>Jean</name>
          <address>dbvsvksn</address>
          <dob>Mar 3</dob>
      <country>us</country>
     </data>
     <data>
      <userid>2</userid>
          <name>Anne</name>
          <address>dbvsvksn ,</address>
          <dob>Jun 2<dob>
      <country>us</country>
     </data>
     <data>
      <userid>3</userid>
          <name>J</name>
          <address>dbvsvksn ,</address>
          <dob>Dec 6<dob>
      <country>us</country>
     </data>
</search>

From this xml file i am listing out the name’s in a list view in an activity. In the list view when a name is clicked it moves over to a new activity where i want to display the correct address, country and dob.

I am able to get the xml file and list out the names in a list view, but i don’t know how to display the exact tag related to the name selected , please help me. How to do this….

  • 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-21T14:06:46+00:00Added an answer on May 21, 2026 at 2:06 pm

    You say you can get the xml file and list out the names, so you apparently are parsing the xml. Are you using one of the XML parser classes (DOM or SAX)? If so, presumably you are building some sort of data structure based on the parsing (probably an array, judging from the XML fragment you posted). Use the index of the selected name to index into the array and retrieve the rest of the data you need.

    Perhaps if you posted some code showing what you’ve tried, we can provide more specific help.

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

Sidebar

Related Questions

A button click fires my function that fetches image data via an AJAX-call: $(#toggle_album).click(function
I have an NIB file with a button. When I click this button, the
I am sending an sms from my app and then i click the Home
I've got an iPhone app sending data to my server with a post request:
what should I do in my app to support sending data between two iphones
I have a button which is sending a get request over XHR to a
I'm following this Railscast here for sending mails from my rails app. At first
I have an app for sending sms. It consists of several cascading activities -
My app has many controls on its surface, and more are added dynamically at
An app I'm writing always crashes on a clients computer, but I don't get

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.