2

I am using Java native serialization along with a dynamic proxy to save the parameters and returns of a series of method calls to a file.

I would like to convert the binary file that is generated to and from XML.

Is this something that I will need to reinvent, or are there already tools out there that can do this?

2
  • Any particular XML format? Base64 encode and wrap? The binary Java serialisation format is unparsable without the Java classes. Commented Aug 12, 2010 at 10:10
  • Thats a good point. I will have the java classes available. The XML format needs to be human readable. Commented Aug 12, 2010 at 10:19

2 Answers 2

2

I think you can use XStream.

Sign up to request clarification or add additional context in comments.

Comments

1

Castor or XStream are two solid choices. XStream has the benefit of drop dead simple usage

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.