For a Character-based C++ Transformation
int main()
{
using std::ofstream; //1
using std::ifstream;
using std::cout;
using std::endl;
book book1("To Love and Be Wise","Josephine Tey"); //2
book book2;
MyInStreamTransform inTransform; //3
MyOutStreamTransform outTransform; //4
{
ofstream fout("book.xml"); //5
RWObjectOutputStream out = //6
RWTTransformObjectOutputStreamImp<MyOutStreamTransform>
::make(fout,outTransform);
out << book1; //7
out.flush(); //8
}