An open API service indexing awesome lists of open source software.

https://github.com/ghusta/retrofit2-simplexml-test

Test for Retrofit2 with SimpleXML
https://github.com/ghusta/retrofit2-simplexml-test

retrofit2 simplexml

Last synced: 4 months ago
JSON representation

Test for Retrofit2 with SimpleXML

Awesome Lists containing this project

README

        

# Test for Retrofit2 with SimpleXML

## Overwiew

The objective is to test deserialization of XML via a **Retrofit** server call.
The library for deserialization of XML is **SimpleXML** (for Java).

## XML source of data

- https://www.w3schools.com/xml/simple.xml

## References

- [Retrofit](https://square.github.io/retrofit/) library
- [List of official converters](https://square.github.io/retrofit/#restadapter-configuration)
- [Simple](http://www.simpleframework.org/) framework / on [GitHub](https://github.com/ngallagher/simpleframework)
- SO question : [How to use Retrofit and SimpleXML together in downloading and parsing an XML file from a site?](https://stackoverflow.com/questions/25380280/how-to-use-retrofit-and-simplexml-together-in-downloading-and-parsing-an-xml-fil)

## Content of XML sample

Source : https://www.w3schools.com/xml/simple.xml

```xml


Belgian Waffles
$5.95
Two of our famous Belgian Waffles with plenty of real maple syrup
650


Strawberry Belgian Waffles
$7.95
Light Belgian waffles covered with strawberries and whipped cream
900


Berry-Berry Belgian Waffles
$8.95
Light Belgian waffles covered with an assortment of fresh berries and whipped cream
900


French Toast
$4.50
Thick slices made from our homemade sourdough bread
600


Homestyle Breakfast
$6.95
Two eggs, bacon or sausage, toast, and our ever-popular hash browns
950

```