Is there any open source Object to XML serializer in Java that uses writeObject method on the object to serialize similar to NSXMLOutputStream in WebObjects?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not sure exactly what you are asking, but I would suggest you look at JAXB, one great Java standard for XML serialization.
Most of the serialization can be defined using annotations, but you can provide your own serialization as well using so-called adapters.
You can then marshall/unmarshall from/to XML as you want. See this answer for an example.