internal override XmlSchemaObject Clone() {
XmlSchemaElement newElem = (XmlSchemaElement)MemberwiseClone();
//Deep clone the QNames as these will be updated on chameleon includes
newElem.refName = this.refName.Clone();
newElem.substitutionGroup = this.substitutionGroup.Clone();
newElem.typeName = this.typeName.Clone();
//Clear compiled tables
newElem.constraints = null;
return newElem;
}
}