Reminds me of something I put together a while ago. https://github.com/taylorh140/SVD_TO_D But this looks much nicer, nice work!
ha ha! Even the pattern used in our code is similar. I swear I never saw it before.
Looking at your code though, I probably should have used Adam's dom.d too; std.xml was weird to say the least.