modules refactoring (6) - xml writer