Search code examples
javaxmlserializationxstream

Deserializing XML to Object


I have a xml file, which is not serialized using XStream.
It may be in any custom but fixed format,
How to use XStream or any efficient api to de serialize it to Object.


Solution

  • I believe you need to implement your own Converter, see this tutorial

    Edit: There are surely other ways (read: other packages) to sort this out, but in your question you have mentioned that you wanted to use XStream, hence my reply, and the link to tutorials there.