XML Comment

In this tutorial you will learn about the XML Comment and its application with practical example.

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.

Table Of Contents

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:

 

In this tutorial we have learn about the XML Comment and its application with practical example. I hope you will like this tutorial.