Implement new storing method with XML