You could use php to do this. For example you could have a form that when you post, kills the last line and then appends text to an XML file. For example say you filled out an HTML form with this data:
artist:Brian Eno
title:Another Green World
track[1]:Sky Saw
track[2]:Over Fire Island
etc..
The php would take this data, kill the last line of the file (in this case </albumlist> which is the closing tag of the list) then writes something like this to the file:
<album>
<artist>Brian Eno</artist>
<title>Another Green World</title>
<track>
<title>Sky Saw</title>
</track>
<track>
<title>Over Fire Island</title>
</track>
etc...
</album>
</albumlist>
You could of course use a lot more information than this. Just loop through the track array like this
PHP Code:
foreach ($track as $value){
if (!empty($value)){
print your track info to the file
}
}
I'd check out all the XML functions in the PHP library too. This (very simple) example doesn't ensure that the file will end up in the correct format if something goes wrong.
Bookmarks