public XmlSchemaElement GetSchemaElement(XmlDocument xmlDoc)
{
// declarations
XmlSchemaElement xmlSchemaElement;
// initializations
xmlSchemaElement = new XmlSchemaElement();
// set defined attributes
xmlSchemaElement.Name = _name;
xmlSchemaElement.MinOccurs = _minOccurs;
xmlSchemaElement.MaxOccurs = _maxOccurs;
xmlSchemaElement.IsNillable = true;
xmlSchemaElement.SchemaTypeName = this.GetXmlQualifiedName();
// set unhandled attributes
xmlSchemaElement.UnhandledAttributes = this.GetUnhandledAttributes(xmlDoc);
return xmlSchemaElement;
}