Restoring the book Object
At this point you have written the book object XML data to the file book.xml. Next restore the object, which involves:
reading in the file
book.xmlrestoring the object as
book2
{
ifstream fin("book.xml"); //1
RWObjectInputStream in = //2
RWEnhancedXmlObjectInputStreamImp::make(fin);
in >> book2; //3
}