The problem is, there are a LOT of possible schemas that can be
generated from any given sample document or set thereof. How precise do
you want the value types/constraints to be? Do you want something to be
able to occur an infinite number of times, or a limited number? Is this
the only sequence in which they may occur?
Tools that will use documents to "validate your schema" -- to help you
check that the schema is OK as you go -- may be useful. Ditto tools to
help generate schema syntax. But I remain convinced that the
schema-from-document generators are strictly a party trick, and not
useful for real-world applications. The goal of a schema is to capture
what *you* know about expected documents, not the limited amount the
machine knows.
--
Joe Kesselman,
http://www.love-song-productions.com...lam/index.html
{} ASCII Ribbon Campaign | "may'ron DaroQbe'chugh vaj bIrIQbej" --
/\ Stamp out HTML mail! | "Put down the squeezebox & nobody gets hurt."