Saving Java Object Graphs as XML file

前端 未结 15 2524
耶瑟儿~
耶瑟儿~ 2021-02-07 12:13

What\'s the simplest-to-use techonlogy available to save an arbitrary Java object graph as an XML file (and to be able to rehydrate the objects later)?

15条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-07 12:46

    XStream by the folks at Thoughtworks has a simple API and even deals with things like duplicate and circular references. It seems to be actively developed and is well documented.

    http://x-stream.github.io/

提交回复
热议问题