Revise write XML bug.
commit