Dump all UDT instance details to XML?

Version 8.0. I’m trying to write a script to export a full UDT instance to an XML file, and by using untangle, walk the document and output parts of it into a CSV file for editing in Excel. I started with system.tag.exportTags(), but that appears to only export things that are different from the UDT definition? system.tag.getConfiguration(), however, does appear to dump everything, but it’s in a Python dictionary format and not XML.

Before I change my script from walking XML to walking a dictionary, is there a way to get a full dump like getConfiguration() does, but in XML format?