Relative Content

Tag Archive for javaxmlxstream

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: