More code added to the XMLWriter class