Skip to main content
3 votes
1 answer
1k views

Error: Library class android.content.res.XmlResourceParser implements program class org.xmlpull.v1.XmlPullParser during R8 Minification

I am encountering an error when trying to make a signed app bundle of my Android project. The build process fails during the minifyReleaseWithR8 task with the following messages: Task :app:...
MGB's user avatar
  • 31
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
2 answers
1k views

How to parse an XML element that has an attribute inside it ? Android ,Kotlin

I have an XML file from server. I use xmlPullPrser for parsing it into Kotlin, but it has an 'id' attribute . I don't Know how to get the 'id' value. thank you in advance for your answer. this is a ...
Zeinab Masoodian'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
57 views

XmlPullParser getAttributeCount() is always -1

I'm trying to parse the following XML stuff.xml to extract the attributes within each block: <?xml version="1.0" encoding="utf-8"?> <MyGroup xmlns:android="http://...
drmrbrewer's user avatar
  • 13.2k
1 vote
1 answer
823 views

XmlPullParser Read value inside a Tag with Kotlin

I have the following rss: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml and I can read all the info with no problem but one tag: <media:content height="151" medium="image&...
juske's user avatar
  • 312
0 votes
1 answer
52 views

Android: Finding out the Tag scope with the help of XmlPullParser

as the title states, with the following function, it's possibile to get the Tags of a XML file: public static void parseXML(Context context) { XmlPullParserFactory parserFactory; try { ...
user avatar
0 votes
1 answer
188 views

Android: How to get the value of a TAG: with XmlPullParser

as the title states, with XmlPullParser, it is possibile to get the Tags of an XML document, with a function that looks as the following: public static void parseXML(Context context) { ...
user avatar
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
1 vote
0 answers
167 views

Error: Program type already present: org.xmlpull.v1.XmlPullParser

I'm getting this error when building a project, it seems that I have 2 libraries in my Gradle that are using the XML parser I tried to exclude it but it's not working. Error: Program type already ...
Reham's user avatar
  • 1,986

15 30 50 per page
1
2 3 4 5
29