Xsd.exe C # file to XSD file

I have an XML file that I used to create an XSD file, and C # code was generated from there.

However, during development, I had to make some changes to this C # file. Is it possible to use the xsd.exe tool to convert this C # file to an XSD file? I hope you do not have to manually edit the XSD file.

+4
source share
1 answer

From a C # file directly, you cannot return to the XSD file (without using xsd.exe).

You can restore the circuit from the type created in the C # file:

xsd.exe yourdll.dll /t[ype]:TypeYouWantASchemaFor or

xsd.exe yourExe.exe /t[ype]:TypeYouWantASchemaFor

See "DLL and EXE File Settings" in the xsd documentation .

+4
source

Source: https://habr.com/ru/post/1306817/


All Articles