When the input contains nested sequences, the code generator generates classes for a single sequences and lose the message's structure. The class can not pass schema validation after XML serialization.The actual schema that I am working with are generated by Microsoft Biztalk's Visual Studio addin (http://technet.microsoft.com/en-us/library/bb669664.aspx).
Version