Richard Hudson
Richard Hudson

Reputation: 73

Multiple Xsds that have the same nested xsd class generation

I have two xsds that both import the same generic xsd. I can generate classes for both the xsds that contain the generic xsd using xsd.exe (I have to use different namespaces as the fields are the same in a lot of cases where the xsds import the generic xsd).

I want to know whether its possible to generate a class for the generic xsd and then have the two other xsds inherit from that? This way I can transfer data over without having to write horrendous conversion methods.

Thanks in advance

Upvotes: 0

Views: 1466

Answers (1)

Richard Hudson
Richard Hudson

Reputation: 73

Found the answer from Tool that can combine many XSD files into one?

Created another file which listed the schemas and the generated them by using the /p command in xsd.exe

Upvotes: 1

Related Questions