For a Character-based C++ Transformation
 
{
ifstream fin("book.xml"); //1
 
RWObjectInputStream in = //2
RWTTransformObjectInputStreamImp<MyInStreamTransform>
::make(fin,inTransform);
in >> book2; //3
}
//1 Creates an ifstream for reading in the object data.
//2 Sets up an XML input stream that includes support for a transformation.
//3 Restores the book object as the book2 instance created earlier, transforming the XML back to the expected XML format in the process.