Skip to main content

All Questions

Tagged with
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 ...
android developer's user avatar
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 ...
Button's user avatar
  • 29
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 <...
dxp99's user avatar
  • 13
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.*...
Siddharth Rout's user avatar
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 ...
docker dev's user avatar
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 ...
KyluAce's user avatar
  • 1,000
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 ...
Amelia Magee's user avatar
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 ...
Morteza Khodaie's user avatar
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 ...
user11358092's user avatar
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> &...
Alexander Vasilchuk's user avatar
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="الْحَمْدُ ...
Khurram Ansar's user avatar
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 ...
Laura's user avatar
  • 73
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 ...
Laura's user avatar
  • 73
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 ...
qkzoo1978's user avatar
  • 310
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([...
Farrukh Najmi's user avatar

15 30 50 per page
1
2 3 4 5
9