Saving Java Object Graphs as XML file

前端 未结 15 2551
耶瑟儿~
耶瑟儿~ 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 13:10

    I'd second (or third) XStream. It reads and writes XML without needing any special binding configuration or placing lots of extraneous syntax in the XML.

    0 讨论(0)
  • 2021-02-07 13:10

    I put together a list with a lot of xml serialization libraries and its license

    0 讨论(0)
  • 2021-02-07 13:11

    java.beans.XMLEncoder perhaps?

    0 讨论(0)
提交回复
热议问题