This example shows how to implement C++ classes that know how to persist themselves in XML. This is the simple case that doesn't involve inheritance. For inheritance support see the 'inheritance' example.