aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 12682
    
    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


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML to HTML
 
Similar Threads
Urgent help needed! Can somebody reply right away?
validating data in varibale possible????
how to generate GUI from an xml-DTD
xml display in struts
Report generation from XML data