I just noticed that the method described to read from a database, put
together with the method to write to XML does not produce XML-files that
can be read in again with the method to read from xml.
I found that a "database.setName("whatever")" had to be called before
writing to xml to remidy this.