This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes How to save html form into a xml file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to save html form into a xml file?" Watch "How to save html form into a xml file?" New topic
Author

How to save html form into a xml file?

Keerthi Kumar
Ranch Hand

Joined: Apr 20, 2009
Posts: 105
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?


Cheers,
Keerthi Kumar N
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60766
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Abhay Agarwal
Ranch Hand

Joined: Feb 29, 2008
Posts: 1075
    
    1

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


Oracle Java Web Service Developer (1z0-897), Oracle certified Java 7 Programmer, SCJA 1.0, SCJP 5.0, SCWCD 5.0, Oracle SQL Fundamentals I
Jeff Ishar
Greenhorn

Joined: Jul 04, 2011
Posts: 13
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to save html form into a xml file?
 
Similar Threads
paperless - XML - java
How to call variables in one applet using another applet?
can any one write this JSP program pls
Conversion from Excel spreadsheet to XML and vice versa.....
applet help please