Computer Science, asked by salmanlaskar36283, 1 day ago

what are the different type of comment that can be used in XML.Explain​

Answers

Answered by hariuthiras
1

Answer:

The comments are added as notes or lines for understanding the purpose of an XML co de. Comments can be used to include related links, information, and terms.

XML Comments Rules

  • Comments cannot appear before XML declaration.
  • Comments may appear anywhere in a document.
  • Comments must not appear within attribute values.

Answered by Shreyas235674
1

Answer:

Here is an example of XML comments:-

Syntax

A comment starts with . You can add textual notes as comments between the characters. You must not nest one comment inside the other

XML Comments Rules

Following rules should be followed for XML comments −

   Comments cannot appear before XML declaration.

   Comments may appear anywhere in a document.

   Comments must not appear within attribute values.

   Comments cannot be nested inside the other comments.

Similar questions