Program traces can be used to drive visualisations of reusable components, but such traces can be gigabytes in size, are very expensive to generate, and are hard to extract information from. We have developed a solution to this problem, an XML Data Storage Environment (XDSE) for storing XML based program traces in a native XML database. We use XQuery to extract information from the program traces and the results are then transformed into understandable visualisations.