FleXml is an integrated distance learning tool grounded on Cognitive Flexibility Theory principles. We emphasized the knowledge deconstruction process in FleXml. This web learning tool is based on XML,XSL, DOM and ASPs. It has three types of users: the administrator, the readers and the authors. It has two kinds of modules – author and reader – that are explained in this paper as well as other functions and its architecture.