what are the different type of comment that can be used in XML.Explain
Answers
Answered by
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
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
Social Sciences,
16 hours ago
English,
16 hours ago
Social Sciences,
16 hours ago
Math,
1 day ago
Math,
1 day ago
Math,
8 months ago
Science,
8 months ago