This object represents an attribute or element in the XML Schema. It is used to create class members of types.
Property |
Type |
Description |
---|---|---|
CodeName |
string |
Name for generated code (derived from local name or parent declaration) |
LocalName |
string |
Original name in the schema. Empty for the special member representing text content of complex types. |
NamespaceURI |
string |
The namespace URI of this Element/Attribute within XML instance documents/streams. |
DeclaringType |
Type originally declaring the member (equal to ContainingType for non-inherited members) |
|
ContainingType |
Type where this is a member of |
|
DataType |
Data type of this member's content |
|
Library |
Library containing this member's DataType |
|
IsAttribute |
boolean |
True for attributes, false for elements |
IsOptional |
boolean |
True if minOccurs = 0 or optional attribute |
IsRequired |
boolean |
True if minOccurs > 0 or required attribute |
IsFixed |
boolean |
True for fixed attributes, value is in Default property |
IsDefault |
boolean |
True for attributes with default value, value is in Default property |
IsNillable |
boolean |
True for nillable elements |
IsUseQualified |
boolean |
True if NamespaceURI is not empty |
MinOccurs |
integer |
minOccurs, as in schema. 1 for required attributes |
MaxOccurs |
integer |
maxOccurs, as in schema. 0 for prohibited attributes, -1 for unbounded |
Default |
string |
Default value |