"xdp to xsd" is a node.js command line utility that converts xdp (Adobe XFA forms) to xsd (xml schema).
$ node xdp2xsd business_form.xdp > business_form.xsd
Current limitations (see Issues...)
There's also an option found in the top of xdp.js: STRICT_BINDING [false]
: Say you have a LiveCycle process that accepts xml data, which will eventually be merged with an xdp business form. As a consumer of that service, you probably expect being able to skip certain fields (or entire subforms for that matter) and settle for data binding of the sloppier kind.
A note on forms using fragments: make sure you apply unambiguous naming to fragments, or you will have a form repository maintenance nightmare once you start adding, removing or reordering fragments in the fragment file. (If you keep it to one fragment per fragment file, this shouldn't be an issue.) xdp2xsd does support fragment "array" references like 'form.customer_fragment[3]', but I encourage you to avoid this naming convention.
xdp2xsd uses log4js, hence you should find a xdp2xsd.log in the root directory. A tip is to do:
`$ tail -f xdp2xsd.log'
in a separate term during the conversion.
Other than the issue section:
Written by Christian Lagerkvist.
MIT