internal override void SetXML(XmlElement xml, BaseClassIfc host, HashSet<int> processed)
{
base.SetXML(xml, host, processed);
string str = Identification;
if (!string.IsNullOrEmpty(str))
xml.SetAttribute("Identification", str);
str = FamilyName;
if (!string.IsNullOrEmpty(str))
xml.SetAttribute("FamilyName", str);
str = GivenName;
if (!string.IsNullOrEmpty(str))
xml.SetAttribute("GivenName", str);
if (mRoles.Count > 0)
{
XmlElement element = xml.OwnerDocument.CreateElement("Roles");
xml.AppendChild(element);
foreach (IfcActorRole role in Roles)
{
element.AppendChild(role.GetXML(xml.OwnerDocument, "", this, processed));
}
}
if (mAddresses.Count > 0)
{
XmlElement element = xml.OwnerDocument.CreateElement("Addresses");
xml.AppendChild(element);
foreach (IfcAddress address in Addresses)
element.AppendChild(address.GetXML(xml.OwnerDocument, "", this, processed));
}
}