Questions tagged [xmlpullparser]

Either the Android XMLPullParser, or any other XML parser implementation that uses the concept of pulling in XML events.

Either the Android XMLPullParser, or any other XML parser implementation that uses the concept of pulling in XML events.

428 questions
22
votes
7 answers

SAX parser vs XMLPull parser

I understand the difference between how the SAX parser works vs the XMLPull parser. In fact there's a pretty good explanation here: http://www.firstobject.com/xml-reader-sax-vs-xml-pull-parser.htm The article is a bit .NET centric but the concepts…
Nelson Ramirez
  • 7,864
  • 7
  • 28
  • 34
16
votes
3 answers

Difference among XML SAX parser, Pull parser & DOM Parser in android

I want to know what's the difference between XML SAX parser, Pull parser & DOM parser in Android. In which condition, which one is better in performance and implementation? Thanx. Khobaib.
Khobaib
  • 1,577
  • 3
  • 21
  • 29
13
votes
2 answers

What is the difference between XML Pull Parser and SAX Parser

I am searching for the main difference between SAX and Pull Parser . I know the SAX parser is good for handling the large XML file as it does not store the XML and traverse in only one direction. as compared to DOM. But I am unable to find the major…
sharma.mahesh369
  • 985
  • 11
  • 28
10
votes
1 answer

xml pull parser assets xml

How can i parse a local XML file in the assets folder using pull parser? I can't get pull parser to work. It always throws an io exception. I think I can't get the path to the file, or connecting to the file.
mixm
  • 531
  • 2
  • 4
  • 18
10
votes
1 answer

How to parse an RSS feed with XmlPullParser?

I would like to parse a RSS feed. My question is how I can parse all tags between the and tags. Given this very simple XML: MyRSSPage
Rox
  • 2,647
  • 15
  • 50
  • 85
10
votes
1 answer

XmlPullParser: get inner text including XML tags

Suppose you have an XML document like so: That was a very bold move. Suppose the XmlPullParser is on the opening tag for root. Is there a handy method to read all text within root to a String, sort of like…
Maarten
  • 6,894
  • 7
  • 55
  • 90
9
votes
7 answers

XmlPullParser - Parse nested tag

I have this XML: Plain Bagel
iqueqiorio
  • 1,149
  • 2
  • 35
  • 78
8
votes
1 answer

XmlPullParser getAttributeValue returns null

I have the following XML structure stored in my assets/xml folder:
CodingIntrigue
  • 75,930
  • 30
  • 170
  • 176
7
votes
2 answers

XmlPullParser get child nodes

I'm working with an OpenStreetMap (.osm) file with Android's XmlPullParser. The part I'm having problems with is this:
fweigl
  • 21,278
  • 20
  • 114
  • 205
7
votes
4 answers

XmlPullParser - unexpected token (android)

i am developing an app, that will read from xml that i have storied in res/xml/experiment.xml, but when i try to parse it, it gives me an xmlPullParserException. Here is my really simple xml file:
David Novák
  • 1,455
  • 2
  • 18
  • 30
7
votes
1 answer

Xml getText return null - Android

i'm using XmlPullParser on Android but get getText return null. Why is this happening? The code, the commented line gives the null ArrayList titleList = new ArrayList(); try { XmlPullParserFactory factory =…
Clepto
  • 685
  • 1
  • 6
  • 7
7
votes
3 answers

ArrayIndexOutOfBoundsException in android's KXmlParser

I am doing regular XML parsing on android, and very rarely I get this exception and only on particular phones. Haven't been able to get to the root of this issue. Does anybody have an idea what might be causing this? …
isneesh
  • 436
  • 5
  • 5
7
votes
1 answer

Android org.xmlpull.v1.XmlPullParserException while parsing XML

I have a situation where i call a web service and it returns me some HTML in an XML envelop. like:
<<…
Aamir
  • 1,747
  • 5
  • 26
  • 50
6
votes
2 answers

how do I extract text from a nested xml using xmlpullparser in android?

text text1 text2 text3 another text ... And I want to extract text to an string like this: "text text1 text2…
butelo
  • 1,653
  • 1
  • 18
  • 29
6
votes
2 answers

Unit testing with Android XmlPullParser on the JVM

I'm trying to set-up unit test cases for my application. A critical part of the app parses XML files with org.xmlpull.v1.XmlPullParser. As this part is low-level, isolated and independant from activities, context, views, etc., I really wanted to…
Eric Leibenguth
  • 4,167
  • 3
  • 24
  • 51
1
2 3
28 29