DoctypeChanger is a small Java utility that lets you add, modify or remove a DOCTYPE declaration from a byte stream as it is fed into an XML parser. This gives you complete control over which DTD, if any, your XML is validated against.
Download
doctypechanger - 1.1
Last Update: Apr 15 2002