Restoring the book Object
At this point you have written the book object XML data to the file book.xml. Next you are ready to restore the object, which involves:

reading in the file
book.xml
transforming the XML back to the form required by XML streams

restoring the object as
book2