minoccurs

XSD Make minOccurs depend on containing type

Hi I have a complex type defined which doesn't currently contain any minOccurs restrictions. When I use this comlpex type as an element type I sometimes want the elements to have minOccurs 0, other times 1. E.g. <xsd:complexType name="Identifier"> <xsd:sequence> <xsd:element name="Id" type="xsd:string"/> <xsd:e...

C# Webservice custom object array set WSDL minoccurs to 1 NOT 0

Hi, I have a webservice that uses a custom object which inturn has an array of custom objects: [Serializable] public class SerializedObjectList { [XmlElement("LineItems", IsNullable = true)] public SerializedObjectItem[] MyArray { get; set; } } [Serializable] public class SerializedObjectItem { [XmlElement("MyVarOne", IsNu...