A complex type with an empty content model may have attributes, but no other content. In this case, there will only be properties generated from attributes.
XSD:
<xsd:complexType name="Empty"> <xsd:attribute name="attrint" type="xsd:integer"/> <!-- other attributes --> </xsd:complexType>
Generated code:
Java:
public class Empty extends XBComplexType { ... //attribute methods public int getAttrint() {...} public boolean isSetAttrint() {...} public void setAttrint(int value) {...} public void setAttrint() {...} [property methods for other attributes here] ... }
C#:
public class Empty : XBComplexType
{
...
//attribute methods
public int getAttrint() {...}
public bool isSetAttrint() {...}
public void setAttrint(int value) {...}
public void setAttrint() {...}
[property methods for other attributes here]
...
}