简体   繁体   中英

What is Java alternative for .NET's XmlSerializer

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.

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

Interesting posts: (Courtesy of Blaise Doughan )

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

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

From an XML schema:

With XPath:

  • Use the class javax.xml.xpath.XPathFactory

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM