Is there any open source Object to XML serializer in Java that uses the writeObject method

Is there any open XML object serializer for XML in Java that uses the writeObject method for an object to serialize, similar to NSXMLOutputStream in WebObjects?

+3
source share
3 answers

Not sure what exactly you are asking, but I would suggest you look at JAXB , one great Java standard for XML serialization.

Most serialization can be determined using annotations , but you can also provide your own serialization using what are called adapters..

Then you can execute marshall / unmarshall from / to XML as you wish. See this answer for an example.

+2
source

Take a look at http://x-stream.imtqy.com/ , although I don't know if these methods use the Object class.

What do you want to use these methods?

+4
source

XMLEncoder/XMLDecoder, XML.

JDK 1.4.

+3

Source: https://habr.com/ru/post/1736465/


All Articles