GeometryGym.Ifc.IfcObject.ParseXml C# (CSharp) Méthode

ParseXml() private méthode

private ParseXml ( XmlElement xml ) : void
xml XmlElement
Résultat void
        internal override void ParseXml(XmlElement xml)
        {
            base.ParseXml(xml);
            if (xml.HasAttribute("ObjectType"))
                ObjectType = xml.Attributes["ObjectType"].Value;
            foreach (XmlNode child in xml.ChildNodes)
            {
                string name = child.Name;
                if (string.Compare(name, "IsTypedBy") == 0)
                    mIsTypedBy = mDatabase.ParseXml<IfcRelDefinesByType>(child as XmlElement);
                if (string.Compare(name, "IsDefinedBy") == 0)
                {
                    foreach (XmlNode node in child.ChildNodes)
                    {
                        IfcRelDefinesByProperties rd = mDatabase.ParseXml<IfcRelDefinesByProperties>(node as XmlElement);
                        if (rd != null)
                            rd.Assign(this);
                    }
                }
            }
        }