XML comments and “--”

Dorothyoz

New Member
\[code\]<!-- here is some comment -- ^ | what can be here apart from '>'?\[/code\]XML seems not to like '--' inside comments. I read somewhere that '--' switchs some modes inside \[code\]<! ... >\[/code\] thing, but \[code\]<!-- -- -- -->\[/code\] (even number of \[code\]--\[/code\]s) seem to be invalid too. If it is some historic feature, what is "pro" part of it? ("contra" part is inability to have \[code\]--\[/code\] in comments).What is the reason of complicating comment processing by not making just '-->' end of comment and allowing '--' inside?
 
Back
Top