More Code added to the XMLWriter class