Implement #845: add writeComment() in ToXmlGenerator
#846
+108
−18
writeComment() in ToXmlGenerator
#846