Naughton FutilitiesNo RelationDetect XSD Code Generation Issues- November 26, 2004 The XSD.EXE command-line tool will generate .NET types from a set of XML Schema files. However, certain constructs in the XSD will result in faulty .NET code. In particular, <xsd:choice> elements with children that are not exclusively <xsd:element>s are quite likely to have issues in the generated class. I found that the following XSLT stylesheet proves useful in flagging up potentially-troublesome Schema fragments. It's not perfect but it's better than scanning schema by eye....http://weblogs.asp.net/naughton/archive/2004/11/26/270711.aspx |