Hello! I have following: xml: <library> <book author = "A"/> <book author = "B"/> <book author = "C"/> </library>
and it's classes: @XStreamAlias("library") public class bigLibrary { private List<book> books; ... } @XStreamAlias("book") public class singleBook { @XStreamAsAttribute private String author; ... } Question: How can i save order in list of elements while serialization and while deserialization? In this example after deserialization list "books" should be: books[0] - A, books[1] - B, books[2] - C, and after serialization xml should have order of nodes called "book" as it's in list "books". Thanks in advance. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email