Questions tagged [android-parser]
112 questions
1
vote
1 answer
JsonArray Or JsonObject is null while parsing with JsonReader
I am trying to parse a json using JsonReader. While parsing I came accross 2 scenarios where my app crashes.
1). When JsonArray contains sets of another JsonArrays and and out of which one of it is null. I am giving a scenarios where result is a…

Vaibs
- 1,128
- 3
- 16
- 36
1
vote
2 answers
Parsing the Xml file which dont have any child nodes
I am new in android development, I want to parse one particular xml file using Dom Parser. The xml structure is something like this.

Nitin Bathija
- 800
- 3
- 12
- 24
1
vote
1 answer
parse xml data into google map android
i am making a program in which i have to parse xml data into google map, i know how to use xml parser and bit knowledge of google mapping, here i need to fetch longitude, latitude, name and address from xml file and need to show in google map with…

user1736992
- 121
- 1
- 1
- 5
1
vote
2 answers
XML Parser in android
I need to know what is the best way to parsing XML file in android, I know there is 3 parser (XMLPullParser, Dom Parser and Sax parser) so whats the different between it and if there any code to do that.

Mahmoud Jorban
- 952
- 4
- 13
- 25
1
vote
1 answer
Android- XML parser not returning full value from XML
The problem is, when i try to get value from xml below
-
The Return of Toastmasters
http://www.younginnovations.com.np/blogs/anjan/2012/06/return-toastmasters
<p>As the title implies, it was…

user98239820
- 1,411
- 2
- 16
- 30
1
vote
1 answer
xml data parsing using dom in android
how to parse this type of data using DOM? here some text is in CDATA and some text in normal.
with a different ICNO ( Hotline Number: +993498347334 )
Can anyone help me on…

Noundla Sandeep
- 3,334
- 5
- 29
- 56
0
votes
1 answer
Android XML Parsing link error
I have an xml file generated dynamically through a php code section.I need this xml file to be read inside my android application.Can anybody suggest a method for the same?
The xml file just looks like :

subrussn90
- 1,142
- 1
- 14
- 27
0
votes
1 answer
Parsing an HTML document from the server
I have an HTML on my server. When I try to parse this document with a DOM or PullParser, the parsing is very slow because I am parsing the HTML style too, mot only the data.
Do you know if there is something to do on Android and parse only the data…

Milos Cuculovic
- 19,631
- 51
- 159
- 265
0
votes
2 answers
0
votes
1 answer
Android DOM parsing is tooo slow
I am trying to parse an web response with DOM parser like this:
public static Document parseDocument(InputStream sr) throws Exception {
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
…

Milos Cuculovic
- 19,631
- 51
- 159
- 265
0
votes
1 answer
How to shows data after XML Parsing if the file contains CADATA in XML file?
I'm new to Android Development, I have to parse my XML files through Http request, i'm using this example for parsing
http://www.androidhive.info/2011/11/android-xml-parsing-tutorial/
which works fine for me in all the the XML file through…

user755278
- 1,634
- 3
- 16
- 32
0
votes
1 answer
JSON array coming as json object if no data in Android
I am getting JSON response from the API call. But in that response one of the JSONArray is coming as JSONObject if there is no data as given below. Without data : "InbuildData": null.
With data :"InbuildData": [{"value": "Yes","checkStatus":0}].…

Malhotra
- 221
- 3
- 13
0
votes
1 answer
Android Socket in same process or separate
I am creating a android app that uses a TCP socket to connect to a server. It continuously receives xml strings from this socket and I need to parse it as it comes. Currently I've implemented the socket in a service in the same process of the…

blessanm86
- 31,439
- 14
- 68
- 79
0
votes
0 answers
Android Crashes while using negative number
In my application, I am getting a number that should be greater than zero to proceed with further steps. That value is coming from service. Sometimes it will be negative or zero from service response. So I am checking it with the below code but the…

Malhotra
- 221
- 3
- 13
0
votes
1 answer
XML Parsing Problem (DOM & SAX Parsing) to print the corresponding data of Item (main tag)
I am doing Doing Dom Parsing from a news website for my android project. But i am finding a trouble.
I want to print the title element of the item tag (main tag).. in the list. And i did it. but i want when i click on the list item the …

Rana.S
- 2,265
- 3
- 20
- 19