TIDY not generating proper XML comments

I converted the following document from HTML to XHTML using Tidy...

<html>
<body>
<!-- -- -->
</body>
</html>

appears as....

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/strict.dtd">
<html xmlns="http://www.w3.org/TR/xhtml1">
<head>
<title></title>
</head>
<body>
<!-- -- -->
</body>
</html>


Unfortunately, <!-- ---- --> is not valid in XML.  It seems that there
is code in there to prevent it, but it's not quite working.  I'm
actually using jTIDY, but can reproduce this error in regular ol' TIDY.

Serge Knystautas
Loki Technologies
http://www.lokitech.com

Received on Monday, 13 September 1999 10:31:00 UTC