Have you seen tidy? http://www.w3.org/People/Raggett/tidy/ 
-----Original Message-----
From: bgillan@us.ibm.com [mailto:bgillan@us.ibm.com]
Sent: Friday, August 23, 2002 8:52 AM
To: psgml-user@lists.sourceforge.net
Subject: [Psgml-user] Using psgml to migrate HTML to XHTML

I'm interested in using psgml to clean up HTML and migrate it to XHTML. I thought the easiest way to accomplish this might be to replace the HTML declaration at the top of the file with one for XHTML and then "normalize" the document. One thing that this doesn't do is fold the element names to lower-case. Is there some way to accomplish this using existing PSGML function? If not, I suppose it would be relatively easy to do a regular expression search/replace to accomplish it.

Is anyone else using PSGML for this purpose? It seems like an ideal tool because it doesn't have the strict enforcement that many XML/SGML structured editors have, yet is powerful enough to understand and facilitate working with structured markup.