jQuery in Action, 2nd edition*
The moose likes XML and Related Technologies and the fly likes XML to HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML to HTML" Watch "XML to HTML" New topic
Author

XML to HTML

Kanu Dialani
Greenhorn

Joined: Apr 30, 2005
Posts: 23
I have a requirement where i need to capture XML from a user and generate HTML form based on that XML.The XML will be stored in the database.
The XML will contain information about form fields and some light weight validations.On run time HTML form will be generated based on the XML.
When the form is submitted the data will also be stored as XML.

Is XSLT the best way to do generate HTML form based on XML ?
Thank You
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
My inclination is always to write Java code using the xml API, but thats because of my background.
If you are more comfortable writing XSLT than thats the way you should start. Note that direct manipulation of XML with the Java API will always be faster than XSLT since XSLT takes extra steps and eventually uses the API anyway. XSLT will probably be more readable and easier to document.
Bill
 
Consider Paul's rocket mass heater.
 
subject: XML to HTML
 
Similar Threads
how to generate GUI from an xml-DTD
Urgent help needed! Can somebody reply right away?
validating data in varibale possible????
Report generation from XML data
xml display in struts