The inst2xsd function takes a set of sample XML instance elements as input and
generates a set of sample XMLSchema documents that define
the content of the given input.
Please consult the
official documentation for further
information.
Example:
import module namespace st = "http://www.zorba-xquery.com/modules/schema-tools";
declare namespace sto =
"http://www.zorba-xquery.com/modules/schema-tools/schema-tools-options";
let $instances := (<a><b/><c/></a>, <b/>, <c>ccc</c>)
let $options :=
<sto:inst2xsd-options xmlns:sto=
"http://www.zorba-xquery.com/modules/schema-tools/schema-tools-options">
<sto:design>vbd</sto:design>
<sto:simple-content-types>smart</sto:simple-content-types>
<sto:use-enumeration>10</sto:use-enumeration>
</sto:inst2xsd-options>
return
st:inst2xsd($instances, $options)