[Home] [By Thread] [By Date] [Recent Entries]


[Gerben Rampaart]

> This is because the double hyphen in comments is legal XML ... but illegal
> SGML. Since compatibility is still maintained between XML and SGML, leave
> the '--' out is the best thing to do in XML.
>

It is not legal xml and parsers give a fatal error.  Perhaps you mean that,
if SGML compatibility had not been an issue, then double hyphens would have
been allowed?

Cheers,

Tom P



  • References:
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member