XMLEncoder in java for serialization

Posted by tom on Stack Overflow See other posts from Stack Overflow or by tom
Published on 2011-01-05T08:49:49Z Indexed on 2011/01/05 8:53 UTC
Read the original article Hit count: 209

Filed under:
|

Im just wondering how i use xmlencoder to serialize ArrayList where foo is my own made class.

Do i have to do anything in particular, ie define my own xml structure first and then call toString on each value in my list and write it out?

Can anyone point me to a good tutorial? http://java.sun.com/products/jfc/tsc/articles/persistence4/ Thats what i have been looking at but it doesnt seem to mention what to do with non library classes.

Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about serialization