Giter Site home page Giter Site logo

XML api sample about retrofit HOT 5 CLOSED

square avatar square commented on May 4, 2024
XML api sample

from retrofit.

Comments (5)

JakeWharton avatar JakeWharton commented on May 4, 2024

Is there a standard for object to XML mapping? GSON and Jackson are the canonical JSON mappers, protocol buffers are protocol buffers, etc.

from retrofit.

codefromthecrypt avatar codefromthecrypt commented on May 4, 2024

Most common is jaxb. It it is a wreck for generic types. Ex. it forces you to make classes like Things as List<Thing> isn't possible at top-level. Jackson 2+ has limited XML support.

Personally, I tend to bite the bullet and write SAX often enough as the shape of XML is often far from ideal forms of java objects, but usually not terribly nested. I concede being weird here.

from retrofit.

codefromthecrypt avatar codefromthecrypt commented on May 4, 2024

Once issues #225 and #223 are merged, I'll write an example S3 api.

from retrofit.

codefromthecrypt avatar codefromthecrypt commented on May 4, 2024

I think I'll go ahead and work on this now, as it should help make things I've failed to explain earlier more concrete.

from retrofit.

codefromthecrypt avatar codefromthecrypt commented on May 4, 2024

closing this PR, as I don't want to distract important change for the sake of optional change.

from retrofit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.