• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to save html form into a xml file?

 
Keerthi Kumar
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am trying to write one java program to save the html form (textbox details, radio/checkbox details) into xml file. Please can any one help me to achieve the same?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65118
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd submit the form to a servlet which could gather the submitted data and write it out in XML format.

I've moved this to the Servlets forum.
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can refer these urls to know how to create XML using Java

http://www.javazoom.net/services/newsletter/xmlgeneration.html
http://www.mkyong.com/java/how-to-create-xml-file-in-java-dom/

~ abhay
 
Jeff Ishar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Keerthi,
Try to use XSLT engine in java. This is the way you can convert any HTML to XML or other document type easily. Even though it requires some learning curve but good for you in future.


Hope this helps
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic