I notice that the wmlbrowser extension for Firefox has a problem; some WML sites render better if wmlbrowser has access to the WML DTD, but wmlbrowser can’t ship it for licensing reasons.
That got me thinking: surely it’s possible, particularly for XML-based languages where conformance to the schema is a requirement, to reverse engineer the contents of the schema if you have enough documents which conform to it? Or, at least, you could make a good guess.
For example, if the root element is always <wml>, you could guess that as the root. And if it only contained elements from a given list, and if a particular element only ever appeared once, etc. etc. Is this feasible? If so, has anyone already written “guess-schema”?