The Simple XML project is no longer maintained. We recommend switching to the JAXB converter.
A Converter
which uses Simple for XML serialization.
A default Serializer
instance will be created or one can be configured and passed to the
SimpleXMLConverter
construction to further control the serialization.
Simple depends on artifacts which are already provided by the Android platform. When specifying as
a Maven or Gradle dependency, exclude the following transitive dependencies: stax:stax-api
,
stax:stax
, and xpp3:xpp3
.
Download the latest JAR or grab via Maven:
<dependency>
<groupId>com.squareup.retrofit2</groupId>
<artifactId>converter-simplexml</artifactId>
<version>latest.version</version>
</dependency>
or Gradle:
implementation 'com.squareup.retrofit2:converter-simplexml:latest.version'
Snapshots of the development version are available in Sonatype's snapshots
repository.