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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:20:33+00:00 2026-06-06T17:20:33+00:00

I am not getting that how to differentiate same element name for eg City,Area

  • 0

I am not getting that how to differentiate same element name for eg City,Area in two different trees. So help me for this in parsing the same element name in iphone.

<Contacts id="1">
    <Fname>Siddharth</Lname>
    <Lname>Chopra</Lname>
    <Currentaddress>
        <Area>Aundh</Area>
        <City>Pune</City>
        <Phone>8796xxxx</Phone>
    </Currentaddress>
    <Permanentaddress>
        <Area>Bhatar</Area>
        <City>Surat</City>
        <Phone>989825xxxx</Phone>
    </Permanentaddress>
    </Contacts>
  • 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-06T17:20:35+00:00Added an answer on June 6, 2026 at 5:20 pm

    In your class create an mutable array, that you’ll use as a stack.
    if a new element starts, create a object representing it (a custom (managed) object, or a dictionary) and add it to the array. In didFoundCharacter: alter the object, that is last on the array. If didEndElement: is called, save it either to core data, a file, sql or in memory to another array. and remove it from the array.

    If the elements <Area>,<City> or <Phone>are handled, you’ll know, that the object on the second last position is the address, they belong to. either <Currentaddress> or <Permanetaddress>.

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

Sidebar

Related Questions

I'm simply not getting this to work. I saw that this network isn't for
I am using the below code, but I am not getting that why it
I'm getting the NRE error that says: Object reference not set to an instance
I keep getting an error saying that @android:style/Widget.Holo.Light.Button.Borderless is not public and so can't
I'm getting an error with FlexUnit 4 that I am not able to find
Update: Ok, after getting past the fact that I did not have MSDTC set
I'm not getting any anti-aliasing when using drawing GL_TRIANGLE_FANs with this code: glDisable(GL_DEPTH_TEST); //
possible duplicate, hello all, I am not getting the reason that why ToggleButton was
Really simple but just not getting it. I want to reference a view by
I am not getting any error message in browser due to curly brace missing

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.