Posted in All Posts

Comments in XML

The syntax for comments in XML is exactly the same as for HTML. That means, the comments should be enclosed inside the tag boundaries <!-- and -->

Why comments are used?

Generally, Comments are used for two major reasons –

  1. To give information about particular code or give a user insight on the purpose of the program.
  2. To hide a part of code temporarily.

Comments in XML Example

We hope that you found this article on Comments in XML to be helpful.
Please share your thoughts in the Comments Section.

If you liked this article, then please like our Facebook page.

Suggested Reading

Comment your thoughts

This site uses Akismet to reduce spam. Learn how your comment data is processed.