Functions to generate Microsoft office XML file