internal override void ParseXml(XmlElement xml)
{
base.ParseXml(xml);
foreach (XmlNode child in xml.ChildNodes)
{
string name = child.Name;
if (string.Compare(name, "ShapeOfProduct") == 0)
{
foreach (XmlNode cn in child.ChildNodes)
{
IfcProduct product = mDatabase.ParseXml<IfcProduct>(cn as XmlElement);
if (product != null)
mShapeOfProduct.Add(product);
}
}
if (string.Compare(name, "HasShapeAspects") == 0)
{
foreach (XmlNode cn in child.ChildNodes)
{
IfcShapeAspect aspect = mDatabase.ParseXml<IfcShapeAspect>(cn as XmlElement);
if (aspect != null)
mHasShapeAspects.Add(aspect);
}
}
}
}