Questions tagged [simple-xml-converter]
35 questions
12
votes
3 answers
Android Retrofit 2 multiple converters (Gson & SimpleXML) error
In my project (I am using Dagger 2, Retrofit 2 & OkHTTP, RxAndroid) i have 2 different API calls. From one I receive JSON, from other - XML. I studied this link and added 2 converters that i need to my…

oleg.v
- 1,065
- 3
- 11
- 20
11
votes
1 answer
Retrofit2 response is bad request while with OkHttp is working fine
(Edit I added a small demonstration test)
I'm new to Retrofit.
What I need to do is the retrieve XML file from a server and convert it to POJO. The problem is that everything work perfect with static files on my test server, but when I'm trying this…

yshahak
- 4,996
- 1
- 31
- 37
8
votes
2 answers
Proguard - PersistenceException: Constructor not matched for class
I am using retrofit2.0 in my app with simpleframework.xml library.
The problem is when I run the app without proguard it works fine however when I run proguard I get the following Error in logs.
E/ERROR: java.lang.RuntimeException:…

Abbas
- 3,529
- 5
- 36
- 64
6
votes
2 answers
What kind of XmlConverter can I use for Retrofit in Android?
I am developing an Android app using Retrofit.
The server is sending XML as a response.
So I should convert it.
In the case of the Json, I used the GsonConverter.
And for XMl, I think I can use SimpleXMLConverter.
I visited the GitHub link for…

yoonhok
- 2,575
- 2
- 30
- 58
5
votes
1 answer
Retrofit and SimpleXmlConverterFactory
I have a problem with retrofit and XML, I use SimpleXmlConverterFactory, and I have this error : Caused by: "java.lang.IllegalArgumentException: Could not locate ResponseBody converter for java.util.List.
Tried:
* retrofit2.BuiltInConverters …

Pascal Lzx
- 91
- 1
- 3
2
votes
0 answers
Cannot Parse XML Response in Retrofit 2.0
I cannot parse XML Response in Retrofit 2.0.
I have created pojo classes for that but it stays null even after I get response from the server.
And it throws this error "java.lang.RuntimeException: org.simpleframework.xml.core.PersistenceException:…

Darshan Popat
- 121
- 5
1
vote
1 answer
How to convert image/svg+xml from API with retrofit 2
Using Retrofit converter-gson and converter-simplexml to get response from API in "Content-Type: image/svg+xml"
Retrofit:
Retrofit.Builder()
.baseUrl(myURL)
.client(okHttpClient)
…

Aknur Asylkhankyzy
- 11
- 1
1
vote
0 answers
Parsing rss feed using retrofit and simplexmlconverter
I am trying since last two day for parsing the rss feed of my website using Retrofit and retrofit2.converter.simplexml. It's parsing the basic tag but not like content:encoded etc.
I am posting the rss xml LINK OF RSS and retrofit's code here.
The…

Codingnation
- 77
- 1
- 6
1
vote
1 answer
Retrofit: Loading xml feed from url returns scrambled response body
I have an issue with load XML feed from url using Retrofit.
Given a dynamic url that clearly returns xml feed f.e: https://anchor.fm/s/53faae8/podcast/rss
When I try to load this via Retrofit I can see in Android Studio Network Profilier that it…

Rik van Velzen
- 1,977
- 1
- 19
- 37
1
vote
1 answer
How do I include the DOCTYPE declaration when serializing to XML using Retrofit2 and SimpleXmlConverterFactory?
I'm trying to use SimpleXmlConverterFactory with Retrofit to create an XML request to a REST service. However, the service requires the DTD declaration in the request like so.

Reed Abbott
- 69
- 3
1
vote
1 answer
how to parse different xml data in single retrofit call
I am using simplxmlconvertor with retrofit in my app to parse xml response from API. Success response from API is given below.
sf98hjf
And error response is given below.
No data…

andro-girl
- 7,989
- 22
- 71
- 94
1
vote
1 answer
How to convert pdf to xml using pdfbox or any other library?
I want to convert pdf files into xml. Is there any java library available that can be used for this?

user1889708
- 11
- 2
1
vote
0 answers
simplexml convertor always write java class name as xml root tag
I'm using Retrofit2 as REST client and SimpleXmlConverterFactory for converting from Java to xml, and from xml to Java object.
When I send response with NotificationResponse through REST, no one of the anotations seem to be applied.
@Root(name =…

Marijana Teofilovic
- 11
- 1
1
vote
0 answers
Java SimpleXml. How to parse XML, which contains Base64-encoded xml?
I'm writing an Android app which retrieves xml data from the server. For manipulating such data I use Retrofit-SimpleXmlConverter(http://simple.sourceforge.net/home.php, https://github.com/square/retrofit/tree/master/retrofit-converters/simplexml)…

AlexF
- 387
- 1
- 4
- 20
1
vote
1 answer
Simple XML Serialization with Retrofit2 with Multiple In-Line Items
Using Retrofit2 with SimpleXmlConverterFactory
My issue is multiple in-line (I believe?) Errors in the error response's errorBody.
I have been referring to this link from Simple XML Serialization as my source of information.
I am working with the…

Michael Carr
- 13
- 4