File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes XML and dynamic data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "XML and dynamic data" Watch "XML and dynamic data" New topic

XML and dynamic data

Yell Srik
Ranch Hand

Joined: Mar 10, 2004
Posts: 61
one of the most important uses of XML is data exchange. generally one
can use tags to specify data in XML. my question is that; i have used HTML
to design a simple form providing users the options of selecting data. now
i want to use XML for data exchange in this case ie whatever selections
the user makes via the HTML forms should be encapsulated in a XML file
that is sent to a server for processing.
i want to know how can i create such an XML file?
thanks in advance.
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
The only way you can do this in the context of an HTML form is with JavaScript (although I'm not quite sure whether it's possible with JavaScript either).
I'll move this post to the JavaScript forum for further discussion (how to generate the XML and send it to a server).

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: XML and dynamic data
jQuery in Action, 3rd edition