is there other way to have this comments but not including any file?
Not to my knowledge. Creating the comments with three single quotes is just a very simple way of making the xml file. It sure is better than making it by hand.