eXtreme Programming (XP) is one of new discipline of software development methodology on values of simplicity, communication, feedback and also courage. XP is an explorative and agile development method that seeks to satisfy the customer through early and continuous delivery of valuable software. XP software development process starts with planning, and all iterations consist of four basic phases in its life cycle: designing, coding, testing, and listening. This paper tends to report the experience in adapting XP in developing electronic document online system for the use of Centre for Diploma Studies, Universiti Tun Hussein Onn Malaysia (eDoc). The project under study is a system that is use to store office documents such as letter in an online database. The objective of this paper is to discuss the XP practices that had been choosed and also the lesson learnt by practising XP in developing eDoc.