What is Java alternative for .NET's XmlSeriali

2020-04-13 04:50发布

I'm porting c# application to Java and don't know what it is doing in details. With what should I replace .Net's XmlSerializer in Java?

Thank you.

4条回答
倾城 Initia
2楼-- · 2020-04-13 05:35

XStream is a simple library to serialize objects to XML and back again.

查看更多
够拽才男人
3楼-- · 2020-04-13 05:36

In java you can use different technology to serialize/deserialize XML.

From an XML schema :

With XPath :

  • Use the class javax.xml.xpath.XPathFactory
查看更多
Fickle 薄情
4楼-- · 2020-04-13 05:41

Castor is another simple to use XML data-binding framework for Java.

查看更多
Ridiculous、
5楼-- · 2020-04-13 05:45

JAXB is your best bet and its also a Java standard.

Interesting posts: (Courtesy of Blaise Doughan)

查看更多
登录 后发表回答