Appending xStream output to an xml file with proper structure
I am writing a small Java program to keep and update a list of books in my personal library. A prompt asks the user for the book’s data and the new book is saved (appended) to an XML file. The method below from the Book
class is responsible for this:
XStream empty collection is null
Im upgrading the xstream lib from 1.3 to 1.4.20.