public Excel_underlyingCalcID(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode excel_typeNode = xmlNode.SelectSingleNode("excel_type");
     
     if (excel_typeNode != null)
     {
         if (excel_typeNode.Attributes["href"] != null || excel_typeNode.Attributes["id"] != null) 
         {
             if (excel_typeNode.Attributes["id"] != null) 
             {
                 excel_typeIDRef_ = excel_typeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(excel_typeNode);
                 IDManager.SetID(excel_typeIDRef_, ob);
             }
             else if (excel_typeNode.Attributes["href"] != null)
             {
                 excel_typeIDRef_ = excel_typeNode.Attributes["href"].Value;
             }
             else
             {
                 excel_type_ = new XsdTypeToken(excel_typeNode);
             }
         }
         else
         {
             excel_type_ = new XsdTypeToken(excel_typeNode);
         }
     }
     
 
     XmlNode calcIDNode = xmlNode.SelectSingleNode("calcID");
     
     if (calcIDNode != null)
     {
         if (calcIDNode.Attributes["href"] != null || calcIDNode.Attributes["id"] != null) 
         {
             if (calcIDNode.Attributes["id"] != null) 
             {
                 calcIDIDRef_ = calcIDNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(calcIDNode);
                 IDManager.SetID(calcIDIDRef_, ob);
             }
             else if (calcIDNode.Attributes["href"] != null)
             {
                 calcIDIDRef_ = calcIDNode.Attributes["href"].Value;
             }
             else
             {
                 calcID_ = new XsdTypeToken(calcIDNode);
             }
         }
         else
         {
             calcID_ = new XsdTypeToken(calcIDNode);
         }
     }
     
 
     XmlNode excel_choiceUnderlyingCalcIDNode = xmlNode.SelectSingleNode("excel_choiceUnderlyingCalcID");
     
     if (excel_choiceUnderlyingCalcIDNode != null)
     {
         if (excel_choiceUnderlyingCalcIDNode.Attributes["href"] != null || excel_choiceUnderlyingCalcIDNode.Attributes["id"] != null) 
         {
             if (excel_choiceUnderlyingCalcIDNode.Attributes["id"] != null) 
             {
                 excel_choiceUnderlyingCalcIDIDRef_ = excel_choiceUnderlyingCalcIDNode.Attributes["id"].Value;
                 Excel_choiceUnderlyingCalcID ob = new Excel_choiceUnderlyingCalcID(excel_choiceUnderlyingCalcIDNode);
                 IDManager.SetID(excel_choiceUnderlyingCalcIDIDRef_, ob);
             }
             else if (excel_choiceUnderlyingCalcIDNode.Attributes["href"] != null)
             {
                 excel_choiceUnderlyingCalcIDIDRef_ = excel_choiceUnderlyingCalcIDNode.Attributes["href"].Value;
             }
             else
             {
                 excel_choiceUnderlyingCalcID_ = new Excel_choiceUnderlyingCalcID(excel_choiceUnderlyingCalcIDNode);
             }
         }
         else
         {
             excel_choiceUnderlyingCalcID_ = new Excel_choiceUnderlyingCalcID(excel_choiceUnderlyingCalcIDNode);
         }
     }
     
 
     XmlNode excel_maximumUnderlyingCalcIDNode = xmlNode.SelectSingleNode("excel_maximumUnderlyingCalcID");
     
     if (excel_maximumUnderlyingCalcIDNode != null)
     {
         if (excel_maximumUnderlyingCalcIDNode.Attributes["href"] != null || excel_maximumUnderlyingCalcIDNode.Attributes["id"] != null) 
         {
             if (excel_maximumUnderlyingCalcIDNode.Attributes["id"] != null) 
             {
                 excel_maximumUnderlyingCalcIDIDRef_ = excel_maximumUnderlyingCalcIDNode.Attributes["id"].Value;
                 Excel_maximumUnderlyingCalcID ob = new Excel_maximumUnderlyingCalcID(excel_maximumUnderlyingCalcIDNode);
                 IDManager.SetID(excel_maximumUnderlyingCalcIDIDRef_, ob);
             }
             else if (excel_maximumUnderlyingCalcIDNode.Attributes["href"] != null)
             {
                 excel_maximumUnderlyingCalcIDIDRef_ = excel_maximumUnderlyingCalcIDNode.Attributes["href"].Value;
             }
             else
             {
                 excel_maximumUnderlyingCalcID_ = new Excel_maximumUnderlyingCalcID(excel_maximumUnderlyingCalcIDNode);
             }
         }
         else
         {
             excel_maximumUnderlyingCalcID_ = new Excel_maximumUnderlyingCalcID(excel_maximumUnderlyingCalcIDNode);
         }
     }
     
 
     XmlNode excel_minimumUnderlyingCalcIDNode = xmlNode.SelectSingleNode("excel_minimumUnderlyingCalcID");
     
     if (excel_minimumUnderlyingCalcIDNode != null)
     {
         if (excel_minimumUnderlyingCalcIDNode.Attributes["href"] != null || excel_minimumUnderlyingCalcIDNode.Attributes["id"] != null) 
         {
             if (excel_minimumUnderlyingCalcIDNode.Attributes["id"] != null) 
             {
                 excel_minimumUnderlyingCalcIDIDRef_ = excel_minimumUnderlyingCalcIDNode.Attributes["id"].Value;
                 Excel_minimumUnderlyingCalcID ob = new Excel_minimumUnderlyingCalcID(excel_minimumUnderlyingCalcIDNode);
                 IDManager.SetID(excel_minimumUnderlyingCalcIDIDRef_, ob);
             }
             else if (excel_minimumUnderlyingCalcIDNode.Attributes["href"] != null)
             {
                 excel_minimumUnderlyingCalcIDIDRef_ = excel_minimumUnderlyingCalcIDNode.Attributes["href"].Value;
             }
             else
             {
                 excel_minimumUnderlyingCalcID_ = new Excel_minimumUnderlyingCalcID(excel_minimumUnderlyingCalcIDNode);
             }
         }
         else
         {
             excel_minimumUnderlyingCalcID_ = new Excel_minimumUnderlyingCalcID(excel_minimumUnderlyingCalcIDNode);
         }
     }
     
 
     XmlNode excel_averageUnderlyingCalcIDNode = xmlNode.SelectSingleNode("excel_averageUnderlyingCalcID");
     
     if (excel_averageUnderlyingCalcIDNode != null)
     {
         if (excel_averageUnderlyingCalcIDNode.Attributes["href"] != null || excel_averageUnderlyingCalcIDNode.Attributes["id"] != null) 
         {
             if (excel_averageUnderlyingCalcIDNode.Attributes["id"] != null) 
             {
                 excel_averageUnderlyingCalcIDIDRef_ = excel_averageUnderlyingCalcIDNode.Attributes["id"].Value;
                 Excel_averageUnderlyingCalcID ob = new Excel_averageUnderlyingCalcID(excel_averageUnderlyingCalcIDNode);
                 IDManager.SetID(excel_averageUnderlyingCalcIDIDRef_, ob);
             }
             else if (excel_averageUnderlyingCalcIDNode.Attributes["href"] != null)
             {
                 excel_averageUnderlyingCalcIDIDRef_ = excel_averageUnderlyingCalcIDNode.Attributes["href"].Value;
             }
             else
             {
                 excel_averageUnderlyingCalcID_ = new Excel_averageUnderlyingCalcID(excel_averageUnderlyingCalcIDNode);
             }
         }
         else
         {
             excel_averageUnderlyingCalcID_ = new Excel_averageUnderlyingCalcID(excel_averageUnderlyingCalcIDNode);
         }
     }
     
 
     XmlNode excel_orderUnderlyingCalcIDNode = xmlNode.SelectSingleNode("excel_orderUnderlyingCalcID");
     
     if (excel_orderUnderlyingCalcIDNode != null)
     {
         if (excel_orderUnderlyingCalcIDNode.Attributes["href"] != null || excel_orderUnderlyingCalcIDNode.Attributes["id"] != null) 
         {
             if (excel_orderUnderlyingCalcIDNode.Attributes["id"] != null) 
             {
                 excel_orderUnderlyingCalcIDIDRef_ = excel_orderUnderlyingCalcIDNode.Attributes["id"].Value;
                 Excel_orderUnderlyingCalcID ob = new Excel_orderUnderlyingCalcID(excel_orderUnderlyingCalcIDNode);
                 IDManager.SetID(excel_orderUnderlyingCalcIDIDRef_, ob);
             }
             else if (excel_orderUnderlyingCalcIDNode.Attributes["href"] != null)
             {
                 excel_orderUnderlyingCalcIDIDRef_ = excel_orderUnderlyingCalcIDNode.Attributes["href"].Value;
             }
             else
             {
                 excel_orderUnderlyingCalcID_ = new Excel_orderUnderlyingCalcID(excel_orderUnderlyingCalcIDNode);
             }
         }
         else
         {
             excel_orderUnderlyingCalcID_ = new Excel_orderUnderlyingCalcID(excel_orderUnderlyingCalcIDNode);
         }
     }
     
 
 }
        public Excel_underlyingCalcID(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode excel_typeNode = xmlNode.SelectSingleNode("excel_type");

            if (excel_typeNode != null)
            {
                if (excel_typeNode.Attributes["href"] != null || excel_typeNode.Attributes["id"] != null)
                {
                    if (excel_typeNode.Attributes["id"] != null)
                    {
                        excel_typeIDRef_ = excel_typeNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(excel_typeNode);
                        IDManager.SetID(excel_typeIDRef_, ob);
                    }
                    else if (excel_typeNode.Attributes["href"] != null)
                    {
                        excel_typeIDRef_ = excel_typeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_type_ = new XsdTypeToken(excel_typeNode);
                    }
                }
                else
                {
                    excel_type_ = new XsdTypeToken(excel_typeNode);
                }
            }


            XmlNode calcIDNode = xmlNode.SelectSingleNode("calcID");

            if (calcIDNode != null)
            {
                if (calcIDNode.Attributes["href"] != null || calcIDNode.Attributes["id"] != null)
                {
                    if (calcIDNode.Attributes["id"] != null)
                    {
                        calcIDIDRef_ = calcIDNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(calcIDNode);
                        IDManager.SetID(calcIDIDRef_, ob);
                    }
                    else if (calcIDNode.Attributes["href"] != null)
                    {
                        calcIDIDRef_ = calcIDNode.Attributes["href"].Value;
                    }
                    else
                    {
                        calcID_ = new XsdTypeToken(calcIDNode);
                    }
                }
                else
                {
                    calcID_ = new XsdTypeToken(calcIDNode);
                }
            }


            XmlNode excel_choiceUnderlyingCalcIDNode = xmlNode.SelectSingleNode("excel_choiceUnderlyingCalcID");

            if (excel_choiceUnderlyingCalcIDNode != null)
            {
                if (excel_choiceUnderlyingCalcIDNode.Attributes["href"] != null || excel_choiceUnderlyingCalcIDNode.Attributes["id"] != null)
                {
                    if (excel_choiceUnderlyingCalcIDNode.Attributes["id"] != null)
                    {
                        excel_choiceUnderlyingCalcIDIDRef_ = excel_choiceUnderlyingCalcIDNode.Attributes["id"].Value;
                        Excel_choiceUnderlyingCalcID ob = new Excel_choiceUnderlyingCalcID(excel_choiceUnderlyingCalcIDNode);
                        IDManager.SetID(excel_choiceUnderlyingCalcIDIDRef_, ob);
                    }
                    else if (excel_choiceUnderlyingCalcIDNode.Attributes["href"] != null)
                    {
                        excel_choiceUnderlyingCalcIDIDRef_ = excel_choiceUnderlyingCalcIDNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_choiceUnderlyingCalcID_ = new Excel_choiceUnderlyingCalcID(excel_choiceUnderlyingCalcIDNode);
                    }
                }
                else
                {
                    excel_choiceUnderlyingCalcID_ = new Excel_choiceUnderlyingCalcID(excel_choiceUnderlyingCalcIDNode);
                }
            }


            XmlNode excel_maximumUnderlyingCalcIDNode = xmlNode.SelectSingleNode("excel_maximumUnderlyingCalcID");

            if (excel_maximumUnderlyingCalcIDNode != null)
            {
                if (excel_maximumUnderlyingCalcIDNode.Attributes["href"] != null || excel_maximumUnderlyingCalcIDNode.Attributes["id"] != null)
                {
                    if (excel_maximumUnderlyingCalcIDNode.Attributes["id"] != null)
                    {
                        excel_maximumUnderlyingCalcIDIDRef_ = excel_maximumUnderlyingCalcIDNode.Attributes["id"].Value;
                        Excel_maximumUnderlyingCalcID ob = new Excel_maximumUnderlyingCalcID(excel_maximumUnderlyingCalcIDNode);
                        IDManager.SetID(excel_maximumUnderlyingCalcIDIDRef_, ob);
                    }
                    else if (excel_maximumUnderlyingCalcIDNode.Attributes["href"] != null)
                    {
                        excel_maximumUnderlyingCalcIDIDRef_ = excel_maximumUnderlyingCalcIDNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_maximumUnderlyingCalcID_ = new Excel_maximumUnderlyingCalcID(excel_maximumUnderlyingCalcIDNode);
                    }
                }
                else
                {
                    excel_maximumUnderlyingCalcID_ = new Excel_maximumUnderlyingCalcID(excel_maximumUnderlyingCalcIDNode);
                }
            }


            XmlNode excel_minimumUnderlyingCalcIDNode = xmlNode.SelectSingleNode("excel_minimumUnderlyingCalcID");

            if (excel_minimumUnderlyingCalcIDNode != null)
            {
                if (excel_minimumUnderlyingCalcIDNode.Attributes["href"] != null || excel_minimumUnderlyingCalcIDNode.Attributes["id"] != null)
                {
                    if (excel_minimumUnderlyingCalcIDNode.Attributes["id"] != null)
                    {
                        excel_minimumUnderlyingCalcIDIDRef_ = excel_minimumUnderlyingCalcIDNode.Attributes["id"].Value;
                        Excel_minimumUnderlyingCalcID ob = new Excel_minimumUnderlyingCalcID(excel_minimumUnderlyingCalcIDNode);
                        IDManager.SetID(excel_minimumUnderlyingCalcIDIDRef_, ob);
                    }
                    else if (excel_minimumUnderlyingCalcIDNode.Attributes["href"] != null)
                    {
                        excel_minimumUnderlyingCalcIDIDRef_ = excel_minimumUnderlyingCalcIDNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_minimumUnderlyingCalcID_ = new Excel_minimumUnderlyingCalcID(excel_minimumUnderlyingCalcIDNode);
                    }
                }
                else
                {
                    excel_minimumUnderlyingCalcID_ = new Excel_minimumUnderlyingCalcID(excel_minimumUnderlyingCalcIDNode);
                }
            }


            XmlNode excel_averageUnderlyingCalcIDNode = xmlNode.SelectSingleNode("excel_averageUnderlyingCalcID");

            if (excel_averageUnderlyingCalcIDNode != null)
            {
                if (excel_averageUnderlyingCalcIDNode.Attributes["href"] != null || excel_averageUnderlyingCalcIDNode.Attributes["id"] != null)
                {
                    if (excel_averageUnderlyingCalcIDNode.Attributes["id"] != null)
                    {
                        excel_averageUnderlyingCalcIDIDRef_ = excel_averageUnderlyingCalcIDNode.Attributes["id"].Value;
                        Excel_averageUnderlyingCalcID ob = new Excel_averageUnderlyingCalcID(excel_averageUnderlyingCalcIDNode);
                        IDManager.SetID(excel_averageUnderlyingCalcIDIDRef_, ob);
                    }
                    else if (excel_averageUnderlyingCalcIDNode.Attributes["href"] != null)
                    {
                        excel_averageUnderlyingCalcIDIDRef_ = excel_averageUnderlyingCalcIDNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_averageUnderlyingCalcID_ = new Excel_averageUnderlyingCalcID(excel_averageUnderlyingCalcIDNode);
                    }
                }
                else
                {
                    excel_averageUnderlyingCalcID_ = new Excel_averageUnderlyingCalcID(excel_averageUnderlyingCalcIDNode);
                }
            }


            XmlNode excel_orderUnderlyingCalcIDNode = xmlNode.SelectSingleNode("excel_orderUnderlyingCalcID");

            if (excel_orderUnderlyingCalcIDNode != null)
            {
                if (excel_orderUnderlyingCalcIDNode.Attributes["href"] != null || excel_orderUnderlyingCalcIDNode.Attributes["id"] != null)
                {
                    if (excel_orderUnderlyingCalcIDNode.Attributes["id"] != null)
                    {
                        excel_orderUnderlyingCalcIDIDRef_ = excel_orderUnderlyingCalcIDNode.Attributes["id"].Value;
                        Excel_orderUnderlyingCalcID ob = new Excel_orderUnderlyingCalcID(excel_orderUnderlyingCalcIDNode);
                        IDManager.SetID(excel_orderUnderlyingCalcIDIDRef_, ob);
                    }
                    else if (excel_orderUnderlyingCalcIDNode.Attributes["href"] != null)
                    {
                        excel_orderUnderlyingCalcIDIDRef_ = excel_orderUnderlyingCalcIDNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_orderUnderlyingCalcID_ = new Excel_orderUnderlyingCalcID(excel_orderUnderlyingCalcIDNode);
                    }
                }
                else
                {
                    excel_orderUnderlyingCalcID_ = new Excel_orderUnderlyingCalcID(excel_orderUnderlyingCalcIDNode);
                }
            }
        }