GeometryGym.Ifc.IfcMaterialLayerSet.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);
            foreach (XmlNode child in xml.ChildNodes)
            {
                string name = child.Name;
                if (string.Compare(name, "MaterialLayers") == 0)
                {
                    List<IfcMaterialLayer> layers = new List<IfcMaterialLayer>();
                    foreach (XmlNode node in child.ChildNodes)
                    {
                        IfcMaterialLayer l = mDatabase.ParseXml<IfcMaterialLayer>(node as XmlElement);
                        if (l != null)
                            layers.Add(l);
                    }
                    MaterialLayers = layers;
                }
            }
            if (xml.HasAttribute("LayerSetName"))
                LayerSetName = xml.Attributes["LayerSetName"].Value;
            if (xml.HasAttribute("Description"))
                Description = xml.Attributes["Description"].Value;
        }