I’ve found some of these that might help you:
Generating forms from JSON schema:
- how to create a html form using a JSON definition?
- http://neyric.github.com/inputex/examples/json-schema.html
- JavaScript to generate/render dynamic HTML form from JSON or similar data?
- Any tool to generate html form
Generating forms from an XML schema:
- http://www.totallysmartit.com/examples/xml/questionnaire/
- Create HTML form from XML
- http://www.datamech.com/XMLForm/
Samples from different libraries to generate form: