Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
Hi, I’ve been tasked with building a web-based interactive SDK to speed up client-side development for our RESPful Web Service APIs. Part of the solution requires an engine that can read an XSD and dynamically generate an editable html form. The idea is to have the user populate the online form to generate a valid XML document. I’m hoping to find a product or library that will help get us there as opposed to building this from scratch. We are looking to integrate this in a tomcat/jsp/java environment. Here are some of the requirements:
(1) Support XSD include & group elements (100+ services are in 2 XSD files bound by include)
(2) Allow selection (via configuration) of an element node to generate form (subset of XSD)
(3) Form should allow data entry of Elements and Attributes
(4) Support 0 to unbound occurrences of any type in Form (add/delete/collapse)
(5) Form widgets:
a. Radio buttons for Choice
b. Checkboxs for Boolean
c. DropDown Lists for Enumerations
d. Datepickers for Dates
(6) Allow for adding default data on the Form
(7) XSD validation should be integrated in the Form highlighting fields in error
(8) Open-source and extendable

*Constraint: I’m building a layer on top of existing services and I don’t have access to modify the XSDs.
I’ve looked at xsd-forms (code.google.com/p/xsd-forms) and it looks promising but it’s in pre-alpha status. Also looking at XSDForm (www.ilerian.com/xsd-web-form-overview) but it may be difficult to integrate with our technology stack and does only part of what we need (but still looking at it). Any ideas or recommendations?
Posted
Updated 13-Jul-20 3:54am
Comments
Sergey Alexandrovich Kryukov 30-Nov-12 14:16pm    
This is quite possible, but everything depends on semantic data model of the form generation. Do you have such distinct entity? You should. That's all the recommendation. How fruitful or practical this idea is — hard to say; it heavily depends on your ultimate goals and expected features...
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900