Javascript will only manipulate things on the client side. If you're building a javascript application, you can write to an XML file that's part of the installation package that's on the client side. (Like, Google Earth has components that you have to download to use it. That's over my head, but I'm guessing what you're actually going to be using is your server side technology (Java, though the outlines would be the same if you're using ASP.NET or PHP).
You're actually looking at two issues. One is to pass the information back to the server, two you're looking at storing the information somewhere. The first problem is easy, you're going to post the information back to the server. Once you have the information stored in variables on the server you can process them. You can then store them as you like, whether it's back into the next page that you're serving up, a file (XML or otherwise), or into a database. But executing those actions will depend on your server side technology. That gives you the outlines and you can ask more detailed questions in the appropriate server side forum.
-------------------------
Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe
When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper
Chroniclemaster1, Founder of
www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.