Dear Utility Programmers,
A tool to fill in values in an XML document should not change the type of the document in the process. Changing all the attribute names to all-caps is right out.
Was the inline DTD at the head of the borken output document meant as an apology?