Creating Comments
XML supports comments for the purposes of injecting additional documentation into an XML document. Comments are solely intended to help the human reader of an XML document. If you think a person is going to be frequently reading an XML document that you generated (rather than a computer program), you should consider adding comments as necessary to your XML documents. When generating larger documents, this greatly simplifies the process of developing a program that generates the XML document and reviewing the results of the code. This allows you to see the comments and get a better idea of where you are in the XML document if you are reading the XML document using a text editor.
NOTE
If you are developing code in Visual Studio ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access