Java XStream库的现代替代品? [英] Modern alternative to Java XStream library?

查看:978
本文介绍了Java XStream库的现代替代品?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我多年前使用过XStream,但我发现自2008年以来这些库没有更新(最新消息 )。现在是否有更现代和最新的Java XML序列化库?

I used XStream many years ago, but I see that the libraries is not updated since 2008 (latest news). Is there now a more modern and up to dates Java XML serialization library?

推荐答案

按优先顺序,相关性和活动:

访问 JAXB项目的网站查看教程指南
还可以查看原始 JAXB架构白皮书

上面列出的JAXB项目是API的参考实现,由GlassFish Application Server打包。

The JAXB projet listed above is the reference implementation of the API, and is packaged in by the GlassFish Application Server.

访问 EclipseLink项目的网站并阅读 InfoQ上关于EclipseLink的介绍性文章,并参见 Blaise Doughan关于MOXy的回答

EclipseLink源自Oracle的 TopLink ,现在是开源的,由 Eclipse Foundation ,并在许多基于Eclipse的产品中使用。

EclipseLink originated from Oracle's TopLink and is now open source, managed by the Eclipse Foundation, and used in a number of Eclipse-based products.

是的, XStream ,因为它实际上是在2011年更新了主要更新和2个服务版本,因为你问,所以它似乎维护得很好,并且使用的是一个非常好的竞争者成熟项目。不要忘记查看 1.4.x版中的新功能。

Yes, XStream, because it's actually been updated in 2011 with a major update and 2 service releases since you asked, so it seems well-maintained and a pretty good contender used by mature projects. Don't forget to check what's new in version 1.4.x.

访问 XStream项目的网站及其教程进行比较。

访问 XmlBeans项目的网站

XmlBeans是一个经过充分测试的项目,已经存在了一段时间。

XmlBeans is a well-tested project that has been around for a while.

访问 JiBX项目的网站,按照教程指南

如果你不喜欢XmlBeans甚至JAXB的复杂性,JiBX可能是一个更简单的选择。

JiBX might be a simpler alternative if you don't like the complexity of XmlBeans or even JAXB.

这篇关于Java XStream库的现代替代品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆