UDT to XML in vba Excel

I would like to know if somebody has a tip for me on writing data stored in variables, actually User Defined Types, into an XML schema. I should add that I'm not looking at parsing data from a range to XML - i'm looking at the serialization of data contained in variables to be presented in XML format. My end UDT may also consist of nesting of various UDT's. My end goal is to be able to write my data that I have in these UDTs to file and then import it later. Additionally in the UDT I, typically have arrays that I only later on give dimensions and therefore I cannot directly write the data to a .dat file.