tags:

views:

28

answers:

2

how to store data in xml file from textbox in html.

A: 

You can't in HTML. What processing software are you using?

Jon Hanna
just a simple HTML file, i know how to retrieve data from XML to HTML file using a javascript
In some very limited contexts, javascript can be given access to the file system of the client, and can save files. These limited contexts are where HTML is being used with something other than a web-browser, such as HTAs. Otherwise HTML and javascript can't save files, or every one of our computers would be full of nothing other than files saying "lol I 0wn j00! 1 am l33t!" because the security would be dreadful.What you can do, is to POST the form to a server, and have server-side code (PHP, ASP.NET, JSP, CF, and many other options) save this to a file on the server, or othewise store it.
Jon Hanna
A: 

It doesn't make sense to convert the entered xml to html client-side and then submit it to store it. Best would be, accept the data in xml and convert to html on server side and store it. I am sure, if you can do it using javascript, you can do it server-side code.

simplyharsh