Do you mean you want to generate an XML Schema from an XML document using XQuery? -- Ron Ivan Pedruzzi wrote: > > Did anybody try to write a generic XQuery that infers the structure of > given XML document and output some sort of XML representation?