Comments

You can leave notes within an XML document in the form of a comment. Comments begin with <!-- and end with -->. If you’ve used comments in HTML, this syntax should be familiar. The example document contains the comment:

<!-- more customers will be added soon -->

Comments are not elements and, therefore, do not affect the structure of the document. They may be placed anywhere in a document except before an XML declaration or within a tag or another comment.

Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.