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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:54:01+00:00 2026-05-24T06:54:01+00:00

my question for today is that i’m curious about if there is a close

  • 0

my question for today is that i’m curious about if there is a close relative and/or equivalence in java using the ksoap2-library to parse element-by-elements.

In objective-c for example:

public void didEndElement(args....){

    if occurring element is thisElement
    //do something with the value in the element


}

public void didStartElement(args....){

    if occurring element is thisElement
    //do something with the value in the element


}

While in java

SoapObject foo = (SoapObject)bar.getProperty(enum);

aString = foo.getProperty(enum);

aNotherString = foo.getProperty(anotherEnum);

So, basically, what we want to do is,

improvised java syntax:

if(currentElement == "myElement")
aVar = valueInElement;
// or
a[1] = valueInElement;

I know that this might a be a lot to ask for, but any pointers or hints to where i can attain any information about this, if it is possible at all.

  • 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-24T06:54:04+00:00Added an answer on May 24, 2026 at 6:54 am

    I think the SAX Parser can help you with that. As in this link: http://www.androidpeople.com/android-xml-parsing-tutorial-using-saxparser

    There, a class named MyXmlHandler is created. This one extends the DefaultHandler class and allows you to override the startElement and endElement methods.

    @Override
    public void startElement(String uri, String localName, String qName,
    Attributes attributes) throws SAXException {}
    
    @Override
    public void endElement(String uri, String localName, String qName)
    throws SAXException {}
    
    @Override
    public void characters(char[] ch, int start, int length)
    throws SAXException {}
    

    There are a lot of tutorials spread out across the internet wich show you how to use this method. The formatting in the link is quite bad, there’s gotta be a better one to find.

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

Sidebar

Related Questions

I have a question that in today's movies like Kung fu panda,Rio etc,Is there
Not that complicated of a question today: Is there a way to get the
my question for today is about the BouncyCastle encryption Library for J2ME, I have
An interesting question arose today. Let's say I have a .NET object that implements
Hi I asked a question today about How to insert different types of objects
i've got one more question today are there any html parsers with not strict
I came across an interesting question today where I have two methods that, at
I have been asked this question today. When debugging, there is an error. But
(This is not a duplicate of this question ). Are there any browsers today
I learned today that there are digraphs in C99 and C++. The following is

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.