One of the XML files can be made fairly simply, the other is a complete bloody pain. This question is months old but since it was one of the top hits for this search I'm posting this here for future use. Run this perl script in a directory of images that you want to include. It'll output an XML file you can use.
#!/usr/bin/perl
use Cwd;
use strict;
use warnings;
print "<background>
<starttime>
<year>2009</year>
<month>08</month>
<day>04</day>
<hour>00</hour>
<minute>00</minute>
<second>00</second>
</starttime>";
my @list = glob("*");
my $dir = cwd();
@list = map {$dir .'/'. $_ }@list;
for(my $i=0;$i<(scalar(@list)-1);$i++){
print "<static>
<duration>1795.0</duration>
<file>$list[$i]</file>
</static>
<transition>
<duration>5.0</duration>
<from>$list[$i]</from>
<to>".$list[$i+1]."</to>
</transition>
";
}
print "</background>";