XML Comment

XML comments begin with <!-- and ends with -->. Like any other programming language XML Comments is used to add annotations or remarks to enhance the readability of the XML Code for the programmers. Comments can be placed anywhere in an XML document.

Example:

Commenting XML Element:

Sometimes we may want to temporarily remove some XML code in our XML document. XML Comments allow us to do this easily.

Example: