Retriveing nonXML documents from taminodatabase in xml forma

Hi,

i have a tamino database for storing nonXML documents. How can i retrive all data from this database in a xml format? Thank you