xsd.exe is based on Codedom.
You can parse xsd.exe and add functionality there and recompile. The code is quite simple.
I modified it to skip some namespaces from xsd when generating the code. [Otherwise, if I include common.xsd in 2 other xsds, the class is generated twice.]
Of course, I had access to the source itself (I was a developer at Microsoft), but the process should be simple and with disassembled code.
Fakrudeen
source share