I trying do a small app for getting information about hardware in our small office. It is probably very simple but today isn't my best day.
So I have something like this:
<form>
<input type="text" name="namePC" id="namePC">
<select name="keyboard">
<option value="Dell">Dell</option>
<option value="Genius">Genius</option>
<option value="Logitech">Logitech</option>
</select>
<select name="Mouse">
<option value="Genius">Genius</option>
<option value="A4tech">A4tech</option>
<option value="Logitech">Logitech</option>
</select>
<button onclick="do_magic()">Write</button>
</form>
and I need to write a script in JavaScript which takes this data and writes into the XML file.
<pc>
<namePC></namePC>
<keyboard></keyboard>
<mouse></mouse>
</pc>
Can anyone help? Small example about grabbing data and writing into the XML, should be enough.