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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:36:02+00:00 2026-06-16T06:36:02+00:00

I have this following XML and i need to parse it in an Android

  • 0

I have this following XML and i need to parse it in an Android app. I already constructed a parser that works pretty well but for XML formats like this http://dl.dropbox.com/u/6751304/Nicosia.xml

Now i have to parse something like this http://www.cytanet.com.cy/Services/connectivity/basic/wireless/GoogleMaps/wifimarkers.xml

the previous parser i used does not display any results. i get a blank loooooong list so i guess it reads the marker label. I also know that the xml is parsed because i can Log.e it in the logcat, but the elements are not read

Can someone recognize the formatting of the second XML file and point to a tutorial/info on how to parse it?

(I can post the current code if needed)

  • 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-16T06:36:04+00:00Added an answer on June 16, 2026 at 6:36 am

    I usually use a SAX Parser, but you are looking for different attributes & different tags.

    Looks like this article should get you started (Covers Sax parsing)
    http://xjaphx.wordpress.com/2011/10/09/android-xml-adventure-parsing-data-with-saxparser/

    Basically in your StartElement you would grab the attributes
    atts.getValue(MyAttribute.ID)

    One reason for having both is something like this :
    And to add to this.. One reason for having both would be to parse something like this :
    Where you want to give an element an attribute which describes it.

    <Contact>
        <Name>John Smith</Name>
        <PhoneNumber primary="true">
              <Number>214-555-1235</Number>
              <Type>Work</Type>
        </PhoneNumber>
        <PhoneNumber>
              <Number>214-555-1111</Number>
              <Type>Home</Type>
        </PhoneNumber>
    </Contact>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have the following XML that i need to parse in C#: <data> <customer_id><![CDATA[1414301]]></customer_id>
This is maddening. I have the following XML layout: <FrameLayout android:layout_width=fill_parent android:layout_height=wrap_content android:background=@drawable/shadow android:focusable=true
I have the following node I need to parse using XSLT 1.0 from xml
I have the following XML I need to parse. Much of my issue seems
I have the following file in xml and I need to Parse it in
I have the following XML <title> This is a <highlight>test</highlight> thanks. </title> and want
I have the following XML <ns0:Root xmlns:ns0=http://Map_Sample.Input_Schema> <Number1> </Number1> <Number2>11</Number2> <Number3>12</Number3> </ns0:Root> In this
I can't believe how unbelievably complicated this has been... I have the following XML...
I have this following setup, a textarea named with some data in it that
Guys I'm new to xml in Java. I have the following task. I need

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.