All Questions
Tagged with xmlpullparser java
130 questions
0
votes
0
answers
254
views
How to parse XML and avoid parsing errors of namespace by setting a default one?
Background
I'm trying to parse some manifest XML files of Android APK files
The problem
I've noticed that in some cases, the XML files aren't valid, meaning that many times there is no namespace being ...
0
votes
0
answers
68
views
Write a XmlPullParser object for AttributeSet
My question is about Android/Java.
How can I build a XmlPullParser object that can be read with the Xml.asAttributeSet method?
My main.xml contains among other things:
<org.javaforum.input
...
1
vote
1
answer
287
views
How to parse namespaces using XmlPullParser to retreive the url link within a <media:thumbnail> tag?
I am building an RSS feed parser using XmlPullParser in Android Studio. I would like to display the feed images in my app, however I am having trouble retrieving the url attribute value in the <...
0
votes
1
answer
133
views
How to load XML layout from storage with layout.inflator?
How can I load XML layout from storage by passing layout.inflator(XmlPullParser,null)?
My code is below:
import android.app.*;
import android.os.*;
import android.view.*;
import org.xmlpull.v1.*...
0
votes
1
answer
79
views
XML Parse a document
Does anyone know how to parse this document to get java object in an arrayList of type Node with attributes:
node_id
relatedroutes
description
title
on_finish_routeid
on_starting_routeid
level_id
...
1
vote
1
answer
193
views
XmlPullParser skip from START_DOCUMENT to END_DOCUMENT eventType
I'm trying to parse xml file in Android app. When I'm trying to process it I don't receive eventType except START_DOCUMENT and END_DOCUMENT right after START. It looks like I will deliver empty file ...
0
votes
1
answer
68
views
Is there any way to get the progress of an XMLPullParser function?
The parsing takes quite some time, and so I'd like to be able to display a progress bar. However I can't seem to find a way to get the progress to update.
The issue comes from the fact that there ...
2
votes
1
answer
586
views
How to parse XML With XmlPullParser?
I read an Xml file with XmlPullParser but it gives Exception (unterminated entity ref (position:TEXT @817:4 in java.io.InputStreamReader@4cb5258) when it comes to Dscp .
i reader another shot like ...
0
votes
1
answer
70
views
I've parsed an xml file, but I need to further split a string within it, how do i do this?
I have parsed an XML feed, but within one of the tags I wish to further parse the data, but am unsure of how to do this? I'm utilising XMLPullParser for this in a package, then the information is ...
0
votes
0
answers
46
views
Getting nothing while parsing xml
I am trying to parse xml file with next structure:
<?xml version="1.0" encoding="utf-8"?>
<root>
<tag1 id="92">
<tag11>Some text for parsing</tag11>
&...
2
votes
1
answer
111
views
parse two different XML files at one time in listview android
I am working on xml in my android project and I am a beginner. i have a same xml in different language too like that
<sura index="1" name="الفاتحة">
<aya index="1" text="الْحَمْدُ ...
0
votes
0
answers
160
views
How to make http post request to an xml document in android
I want to write to an xml document as for every request to the URL , I want to add a parameter called “lname” and insert my last name as the value.
Any Suggestions?
Here is a snippet from my Main ...
0
votes
0
answers
135
views
How to get the object properties from a list of objects in my model class so that I can pass the objects through intents?
I successfully parsed and retrieved all the data that I need from an xml document. I have two activities, one activity that shows the main data and other activity that shows an extra data for the ...
2
votes
1
answer
2k
views
Why is this FileOutputStream creating an empty file?
This code creates the file, but it's always empty.
I have seen some examples using a StringWriter, but my XML files can become so large, it doesn't seem practical saving it to a writer, converting it ...
1
vote
1
answer
219
views
Android KXmlParser "NoSuchMethodError: java.lang.System.arraycopy([CI[CII)V"
I am using KXmlParser in a Spock specification (no Robolectric) to parse Android strings.xml file. I intermittently get the following trace:
java.lang.NoSuchMethodError: java.lang.System.arraycopy([...