internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary <int, XmlElement> processed)
 {
     base.SetXML(xml, host, processed);
     if (mTemplateType != IfcSimplePropertyTemplateTypeEnum.NOTDEFINED)
     {
         xml.SetAttribute("TemplateType", mTemplateType.ToString().ToLower());
     }
     setAttribute(xml, "PrimaryMeasureType", PrimaryMeasureType);
     setAttribute(xml, "SecondaryMeasureType", SecondaryMeasureType);
     if (mEnumerators > 0)
     {
         xml.AppendChild(Enumerators.GetXML(xml.OwnerDocument, "Enumerators", this, processed));
     }
     if (mPrimaryUnit > 0)
     {
         xml.AppendChild(mDatabase[mPrimaryUnit].GetXML(xml.OwnerDocument, "PrimaryUnit", this, processed));
     }
     if (mSecondaryUnit > 0)
     {
         xml.AppendChild(mDatabase[mSecondaryUnit].GetXML(xml.OwnerDocument, "SecondaryUnit", this, processed));
     }
     setAttribute(xml, "Expression", Expression);
     if (mAccessState != IfcStateEnum.NOTDEFINED)
     {
         xml.SetAttribute("AccessState", mAccessState.ToString().ToLower());
     }
 }