是的,通过使用xsd.exe
D:temp>xsd test.xmlMicrosoft (R) Xml Schemas/DataTypes support utility[Microsoft (R) .NET framework, Version 4.0.30319.1]Copyright (C) Microsoft Corporation. All rights reserved.Writing file 'D:temptest.xsd'.D:temp>xsd test.xsd /classesMicrosoft (R) Xml Schemas/DataTypes support utility[Microsoft (R) .NET framework, Version 4.0.30319.1]Copyright (C) Microsoft Corporation. All rights reserved.Writing file 'D:temptest.cs'.
笔记
回答如何将“开发人员命令提示符”中的目录更改为d: temp可能会有用。
如果为多维数组生成类,则XSD.exe生成器中存在错误,但是存在解决方法。



