Questions tagged [android-pullparser]

12 questions
22
votes
4 answers

Store static data in Android - custom resource?

I'm new to Android development, and I've been playing around with it a bit. I was trying to create a program that has a small database-like collection of never-changing data. In C#, my currently best language, I'd use a List of a custom class and…
NickAldwin
  • 11,584
  • 12
  • 52
  • 67
3
votes
2 answers

Parsing huge JSON object in Android?

How to parse huge JSON file in Android? When I parse such file I see on something like this on logs: 04-05 15:55:46.490: DEBUG/dalvikvm(3847): GC freed 12159 objects / 557744 bytes in 142ms 04-05 15:55:46.490: INFO/global(3847): Default buffer size…
pixel
  • 24,905
  • 36
  • 149
  • 251
2
votes
1 answer

Android - Pull Parser

I am having one xml file and I want to parse it to get Student-ids and student-names only. 101 James 1978271
Paresh Mayani
  • 127,700
  • 71
  • 241
  • 295
2
votes
3 answers

Android Html.fromHtml() loses the HTML if it starts with

tag

i call a web service that returns some HTML which enclosed in an XML envelop... something like:

Some text

I use XmlPullParser to parse this…

Aamir
  • 1,747
  • 5
  • 26
  • 50
1
vote
2 answers

Parse XML from assets file

I have an xml file in the assets folder that I need to parse. Here is the structure of the xml:
Darko Petkovski
  • 3,892
  • 13
  • 53
  • 117
1
vote
0 answers

Android 2.3.3 and XmlPullParser.nextText()

Article on this link (android developer's blog) says: Using XmlPullParser is an efficient and maintainable way to parse XML on Android. Historically Android has had two implementations of this interface: - KXmlParser, via…
sandalone
  • 41,141
  • 63
  • 222
  • 338
0
votes
0 answers

org.xmlpull.v1.XmlPullParserException: read end tag key with no tags open

org.xmlpull.v1.XmlPullParserException: read end tag key with no tags open (position:END_TAG @1:7 in java.io.InputStreamReader@83d457b) Android 6.0 (API 23) What's wrong in xml? Or what else could be the reason of that exception? If i'm not mistaken…
Kiryl Ivanou
  • 1,015
  • 2
  • 12
  • 22
0
votes
1 answer

Android; parsing XML to Textview

I want to Parse an XML which has data differentiated on the basis of id (can say in tabular form) and to show it in Textviews (one id at a time) Can you help me in this regard?? Preferably in XML PullParser as it is recommended by android I want…
0
votes
2 answers

Why XML placed in /res/xml generates XmlPullParserException (no error when in /res/raw)?

I place the local XML file into res/raw and then loads it into InputStreamer object. It works fine and I am able to parse its content. When I place the same XML into res/xml, I get XmlPullParserException saying it can't find the START tag. I use…
sandalone
  • 41,141
  • 63
  • 222
  • 338
0
votes
2 answers

Getting "null" in place of textvalue After parsing XML using PullParser in Android

I had a look at this. SO please dont redirect me to that site. I had already used DOM parser and here is my problem with that. I am having the same XML : First Second And now i have no way but to…
Altair
  • 427
  • 1
  • 5
  • 17
0
votes
1 answer

Android Pull Parser from url.xml

I have searched for two days now, I probably have seen a solution that would solve my problem, though I have yet to find one I understand. I am following this tutorial - Simple XMLPullParser Tutorial The two areas I know I need to change are Here…
0
votes
1 answer

Performing XML parsing with XML Pull Parser in Android

I am trying XML parsing with XML Pull Parser. But I am getting only data for nametitle & name only. For rest of data I am getting Exception. Below I am posting my code. Main Activity public class PullParsingActivity extends Activity { private…
Nitish
  • 3,097
  • 13
  • 45
  • 80