Marshaling
You can then call the marshal() method on the root object. The code below illustrates this step and prints the result to standard out.
 
// Invoke the marshal method on the object
// to create XML from tree and print the result to standard out
std::cout << po.marshal() << std::endl;