XML is justa data format, and SAX is a category of XML parser. Bothe have nothing really to do with databases. What do you actually need to do? What data do you need to get from the database, and what format is in already? We really need a bit more information to be able to help you here.