I like Clay's suggestion. Something else you could consider along those lines is a script to scan all existing XML files, and for those files without a doctype, perform a simple heuristic analysis in order to determine and assign a DOCTYPE declaration to each. Or if you had a limited set of DOCTYPEs then just try each DOCTYPE one at a time until the file validates
↧