So I'm trying to create a feature of a tool to save to file so that it can be loaded. I'm not sure exactly how to do this. I want it to save to a file on the users computer (this is local only, I recognize the danger of saving to a user's computer with or without their consent) in an XML format. Here's the html I have so far.
And I want to save first name and last name to a file called people.xml.
Thanks in advance.
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div id="people">
<input type="button" value="John Doe" first_name="John" last_name="Doe" />
<input type="button" value="Jane Doe" first_name="Jane" last_name="Doe" />
</div>
<input type="button" value="Save People" onclick="saveToFile()" />
</body>
</html>
And I want to save first name and last name to a file called people.xml.
Thanks in advance.