I'm working on a small hobby project for personal use, which requires a way to store some values. The three ways of doing this that I could come up with were using: a MySQL db, a XML file or HTML5's LocalStorage (please post a comment if there are other convenient ways you can think of).
Now since I might want to access the same values from another browser, for instance a mobile device, LocalStorage is clearly not the way to do it. Now when it comes to XML, I know it is only meant as a mean of transporting data, while data storage should be done in MySQL. However, since this is a small project which only would require a XML file of no more than a couple kilobytes, it feels like using XML would be more convenient in this case than setting up a MySQL db. Am I right?
Assuming I want to use XML, how do I append some nodes using a) PHP and b) JQuery or otherwise? Which one do you think is the most convenient way to do it?
I found that there are few well-written examples out there of how to do this (especially with JQuery I wasn't able to find an example of how to append an XML file in a straightforward way), so it would be awesome if you could attach some sample code for comparison, thank you!