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
6
votes
2 answers

Retrofit Multipart Upload Image failed

I am trying to upload image with Retrofit library. This is how I am uploading: Request Code: @Multipart @POST("/customerapp/{context}/{token}/passenger/passport/add/{passengerId}") @Headers({ "Accept: application/xml", …
Omama
  • 147
  • 1
  • 2
  • 9
6
votes
3 answers

How to create an AttributeSet in Android?

I am trying to write some code in Android to set parameters in an AttributeSet from attrs.xml file. But I am getting a "Resource not Found" error. Java Code MainActivity.java package com.example.mycompoundbutton; import…
MyProg
  • 121
  • 1
  • 2
  • 6
6
votes
2 answers

net.sqlcipher.database.SQLiteException: not an error:

I am getting this error in my android app db. In SQLite database i am getting database query from my scripts in assets folder with the help of this code. manager = context.getResources().getAssets(); input =…
Monty
  • 3,205
  • 8
  • 36
  • 61
6
votes
4 answers

Android: Best parser to parse XML data

I am developing an application in which the first time I am going to parse data from an xml file coming from a remote server. But i am not able to select which parser is efficient or best suited for parsing. As there are mainly three types of…
Manoj Fegde
  • 4,786
  • 15
  • 50
  • 95
6
votes
3 answers

XmlPullParser:PI must not start with xml, but only on Android 2.3.3 downwards

I get no error on Android 3.0+, but only on Android 2.2, 2.3.3 when I try to parse a small XML file via XmlPullParser, the app breaks with an error: org.xmlpull.v1.XmlPullParserException: PI must not start with xml (position:unknown @1:5 in…
sandalone
  • 41,141
  • 63
  • 222
  • 338
6
votes
2 answers

XmlPullParser is not working with InputStream

I am using XmlPullParser for xml parsing in my android app but when I set input as InputStream it not works while I set input as Reader it starts working XmlPullParserFactory factory =…
Azmat
  • 393
  • 3
  • 15
5
votes
3 answers

How to get a node value with XmlPullParser

Im trying to get values from an XML with the XmlPullParser but can't reach the values I want. The XML-structure is similar to the Android Strings.xml: 1 I can get "string", "name" & "value" from the XML but can't…
DecodeGnome
  • 1,809
  • 1
  • 19
  • 36
5
votes
1 answer

What's in gradle a group, module and artifact?

The gradle docs don't take the time to explain the entities they are dealing with. That's why I want to ask such a basic question. I've got a to understand in detail, what the terms group, module and artifact really mean to alter this…
OneWorld
  • 17,512
  • 21
  • 86
  • 136
5
votes
1 answer

Handling Xml namespaces with XmlPullParser

Here I am using XmlPullParser to parse the document below. It does not work because of the namespaces, how do I parse with namespaces? XmlPullParserFactory factory =…
jax
  • 37,735
  • 57
  • 182
  • 278
5
votes
1 answer

How can I parse XML android?

I am having trouble in parsing my XML, I have tried many things. I have xml like this.
5
votes
1 answer

XmlPullParserException while parsing a resource file in Android

I'm trying to parse an XML file that I have in my resources folder. This is what I'm trying to do - public void loadXMLtoDB() { Resources resource = mContext.getResources(); dbInstance = new DBProvider(); dbInstance.onCreate(); …
yadav_vi
  • 1,289
  • 4
  • 16
  • 46
5
votes
3 answers

With gcj compiled java & XStream. (Exception: Cannot create XmlPullParser)

I'm enhancing a client, which is part of a bigger project. Because of the lack of speed i was forced to switch to CNI and therefore i had to generate native code with the GNU-gcj compiler (gnu 4.6.3). The compiling and linking works fine (thanks to…
Chris
  • 51
  • 1
  • 4
5
votes
2 answers

Unknown error in xpath (using xmlpullparser)

I am using XmlPullParser to open a file and XPath to get the root. (Later I will modify my code to get the idx node) However, I am getting the following error: javax.xml.transform.TransformerException: Unknown error in XPath. I've searched on the…
Abid
  • 279
  • 2
  • 19
5
votes
2 answers

XmlPullParserException only on ICS

My problem is that I have to parse HTML data like 84 101
some text
Here comes a table definition
and an XmlPullParserException is thrown on the following: while (eventType != XmlPullParser.END_DOCUMENT) { if…
5
votes
2 answers

android ksoap call xmlpullparser exception

I have used ksoap2 to call my SOAP service. It works fine in android2.2, but when the same code runs in android2.3.3 onwards it throws an exception in the following line. http_transport_se.call(SOAP_ACTION, envelope); The exception thrown, as…
JabezMMM
  • 483
  • 5
  • 8
1
2
3
28 29