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.xmltransforming the XML back to the form required by XML streams
restoring the object as
book2
{
ifstream fin("book.xml"); //1
ifstream script("../XmlStreamIn.xsl"); //2
RWObjectInputStream in = //3
RWXsltObjectInputStreamImp::make(fin,script);
in >> book2; //4
}