These few scripts take a data model housed in Mauro Data Mapper, and output an XML diagram suitable for Draw.io
The breakdown of what is actually happening here can be found on my blog at: https://will-list.co.uk/2022/03/02/creating-draw-io-diagrams-from-metadata-stored-in-mauro/