Add DTD validation files to XML file type via SDK/API

We have a custom XML file type settings file and we need to add DTD files to the Validation section.

Easily enough done via the SDL Trados Studio interface.

But is it possible to add these DTD files to the XML file type settings file via the SDK/API?

Thanks in advance,

Samuel