Are there any way to prevent the extra schema during document type creation?


I’m using wm.server.record:createXSDSourceArray and wm.server.record:generateFromXSDSource services to create document type from my schema.

it works fine but as a side effect additional schema content has been created along with the document type.

Are there any other way to create a document type from XSD?
if not, Are there any way to prevent this by customizing the calls to the above services?
if not, are there any programmatic way to delete this after creation?

best regards,