.NET xsd importer creates unserializable class
问题 I am using the .NET XSD.EXE importer to generate C# classes from a collection of XSD files. When I tried to serialize one of the classes to XML it failed ( InvalidOperationException ), and when I dug into it I discovered it one of the created classes appears to be wrong. Here is the pertinent XSD code: <xsd:complexType name="SuccessType"> <xsd:annotation> <xsd:documentation>Indicates in a response message that a request was successfully processed.</xsd:documentation> </xsd:annotation> <xsd