慕容3067478
是的,通过使用xsd.exeD:\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:\temp\test.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:\temp\test.cs'.注记回答如何在Developer命令提示符中更改目录到d:\temp可能有用。如果您为多维数组生成类,则XSD.exe生成器中有一个bug,但是有解决办法.