I made it work with xsdata nested types, but now xsdata supports unesting: https://github.com/tefra/xsdata/pull/670 any interest?