Is this a valid XML comment?
3 answers
These questions are best answered by referring to the relevant specifications. In this case, the Extended Markup Language (XML) 1.1 specification .
It says:
Comments can appear anywhere in the document outside of other markup; in addition, they may appear in a document type declaration in places permitted by the grammar.
And the grammar for the element’s start tag:
[40] STag ::= '<' Name (S Attribute)* S? '>'
[41] Attribute ::= Name Eq AttValue
S Name Eq AttValue . 2 ( , ) Comment .
, NO.
+6