I want to convert a pivot table with 5 parent-child levels to an XML file. Also each child level can have a different number of children. Similar to what they do here:


My question:
Can someone help me with the VBA code to transform a 5 level deep pivot tree to an XML file?