In the past, Relational database is chosen to be used as database management system in many applications. With the growing popularity of XML and XML database, it provides a new choice of database management system for today's application. For a large set of applications an XML database will often far surpass traditional data storage mechanisms in convenience, ease of development and performance. In this paper, we will develop a versioning document management system by using XML database and will compare its performances with the relational database system.