java - Automated XML (de)serialization on Android? -


what enterprise-level options xml databinding on android?

it's possible i'm misusing term "databinding": i'm looking support automatic (de)serialization of java pojos & xml. in context of communicating rest services not have client package use.

initial research problem has demonstrated, surprise, accomplishing task on android has many barriers:

  • the java-standard jaxb library isn't present on android
  • the java-standard xml streaming package isn't present on android
  • jackson xml doesn't work without xml streaming (or suspect workaround)
  • simplexml isn't jax-rs compliant, requires pojo re-annotations, , worst: requires significant work handle non-trivial variety of common objects (eg; uuid, uri)

i'm quite surprised such common & trivial problem on other platforms leads feels dead-end.

the services i'm working in alpha state, not have stable domain model. before diving fragile world of sax parsers, pull parsers, and/or xpath & template, other options? enterprise-friendly libraries might have missed?

use http://square.github.io/retrofit

it supports xml, not json.

it's seems using these days.


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -