GeometryGym.Ifc.IfcSurfaceCurveSweptAreaSolid.ParseXml C# (CSharp) Method

ParseXml() private method

private ParseXml ( XmlElement xml ) : void
xml XmlElement
return void
        internal override void ParseXml(XmlElement xml)
        {
            base.ParseXml(xml);
            foreach (XmlNode child in xml.ChildNodes)
            {
                string name = child.Name;
                if (string.Compare(name, "Directrix") == 0)
                    Directrix = mDatabase.ParseXml<IfcCurve>(child as XmlElement);
                else if (string.Compare(name, "ReferenceSurface") == 0)
                    ReferenceSurface = mDatabase.ParseXml<IfcSurface>(child as XmlElement);
            }
            if (xml.HasAttribute("StartParam"))
                mStartParam = double.Parse(xml.Attributes["StartParam"].Value);
            if (xml.HasAttribute("EndParam"))
                mStartParam = double.Parse(xml.Attributes["EndParam"].Value);
        }
IfcSurfaceCurveSweptAreaSolid