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.

Brian