tidy as simple validator

is there a way to configure tidy so that it simply report if the file 
is malformed (e.g. missing tag or missing <) and give their line 
numbers?

---------
if i do for example:

tidy -utf8 -e x.html

for a very simple html with mismatched tags

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=utf-8">
<title>t</title>
</head>
<body>
<h1>三教九流十八班,<small><small>李杀</small></big>
</body>
</html>


but tidy gives this verbose answer with "0 errors were found!"

line 8 column 13 - Warning: replacing unexpected big by </big>
line 8 column 1 - Warning: missing </h1> before </body>
Info: Doctype given is "-//W3C//DTD HTML 4.01 Transitional//EN"
Info: Document content looks like HTML 4.01 Strict
2 warnings, 0 errors were found!


To learn more about HTML Tidy see http://tidy.sourceforge.net
Please send bug reports to html-tidy@w3.org
HTML and CSS specifications are available from http://www.w3.org/
Lobby your company to join W3C, see http://www.w3.org/Consortium
---------

i wanted to use tidy in batch mode in unix. e.g. find . -name "*html" | 
xargs -l -i tidy -utf8 -e {}

Thanks.

i'm using version: HTML Tidy for Mac OS X released on 1 July 2005

  Xah
  xah@xahlee.orghttp://xahlee.org/

Received on Saturday, 10 September 2005 09:54:59 UTC