generating a sample XML file with ContributionWriter class