Adding writing xml