public Excel_underlyingInfo(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 excel_stockIndexNode = xmlNode.SelectSingleNode("excel_stockIndex");
     
     if (excel_stockIndexNode != null)
     {
         if (excel_stockIndexNode.Attributes["href"] != null || excel_stockIndexNode.Attributes["id"] != null) 
         {
             if (excel_stockIndexNode.Attributes["id"] != null) 
             {
                 excel_stockIndexIDRef_ = excel_stockIndexNode.Attributes["id"].Value;
                 Excel_stockIndex ob = new Excel_stockIndex(excel_stockIndexNode);
                 IDManager.SetID(excel_stockIndexIDRef_, ob);
             }
             else if (excel_stockIndexNode.Attributes["href"] != null)
             {
                 excel_stockIndexIDRef_ = excel_stockIndexNode.Attributes["href"].Value;
             }
             else
             {
                 excel_stockIndex_ = new Excel_stockIndex(excel_stockIndexNode);
             }
         }
         else
         {
             excel_stockIndex_ = new Excel_stockIndex(excel_stockIndexNode);
         }
     }
     
 
     XmlNode excel_interestRateNode = xmlNode.SelectSingleNode("excel_interestRate");
     
     if (excel_interestRateNode != null)
     {
         if (excel_interestRateNode.Attributes["href"] != null || excel_interestRateNode.Attributes["id"] != null) 
         {
             if (excel_interestRateNode.Attributes["id"] != null) 
             {
                 excel_interestRateIDRef_ = excel_interestRateNode.Attributes["id"].Value;
                 Excel_interestRate ob = new Excel_interestRate(excel_interestRateNode);
                 IDManager.SetID(excel_interestRateIDRef_, ob);
             }
             else if (excel_interestRateNode.Attributes["href"] != null)
             {
                 excel_interestRateIDRef_ = excel_interestRateNode.Attributes["href"].Value;
             }
             else
             {
                 excel_interestRate_ = new Excel_interestRate(excel_interestRateNode);
             }
         }
         else
         {
             excel_interestRate_ = new Excel_interestRate(excel_interestRateNode);
         }
     }
     
 
     XmlNode excel_indexTypeNode = xmlNode.SelectSingleNode("excel_indexType");
     
     if (excel_indexTypeNode != null)
     {
         if (excel_indexTypeNode.Attributes["href"] != null || excel_indexTypeNode.Attributes["id"] != null) 
         {
             if (excel_indexTypeNode.Attributes["id"] != null) 
             {
                 excel_indexTypeIDRef_ = excel_indexTypeNode.Attributes["id"].Value;
                 Excel_indexType ob = new Excel_indexType(excel_indexTypeNode);
                 IDManager.SetID(excel_indexTypeIDRef_, ob);
             }
             else if (excel_indexTypeNode.Attributes["href"] != null)
             {
                 excel_indexTypeIDRef_ = excel_indexTypeNode.Attributes["href"].Value;
             }
             else
             {
                 excel_indexType_ = new Excel_indexType(excel_indexTypeNode);
             }
         }
         else
         {
             excel_indexType_ = new Excel_indexType(excel_indexTypeNode);
         }
     }
     
 
 }
Exemplo n.º 2
0
        public Excel_underlyingInfo(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 excel_stockIndexNode = xmlNode.SelectSingleNode("excel_stockIndex");

            if (excel_stockIndexNode != null)
            {
                if (excel_stockIndexNode.Attributes["href"] != null || excel_stockIndexNode.Attributes["id"] != null)
                {
                    if (excel_stockIndexNode.Attributes["id"] != null)
                    {
                        excel_stockIndexIDRef_ = excel_stockIndexNode.Attributes["id"].Value;
                        Excel_stockIndex ob = new Excel_stockIndex(excel_stockIndexNode);
                        IDManager.SetID(excel_stockIndexIDRef_, ob);
                    }
                    else if (excel_stockIndexNode.Attributes["href"] != null)
                    {
                        excel_stockIndexIDRef_ = excel_stockIndexNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_stockIndex_ = new Excel_stockIndex(excel_stockIndexNode);
                    }
                }
                else
                {
                    excel_stockIndex_ = new Excel_stockIndex(excel_stockIndexNode);
                }
            }


            XmlNode excel_interestRateNode = xmlNode.SelectSingleNode("excel_interestRate");

            if (excel_interestRateNode != null)
            {
                if (excel_interestRateNode.Attributes["href"] != null || excel_interestRateNode.Attributes["id"] != null)
                {
                    if (excel_interestRateNode.Attributes["id"] != null)
                    {
                        excel_interestRateIDRef_ = excel_interestRateNode.Attributes["id"].Value;
                        Excel_interestRate ob = new Excel_interestRate(excel_interestRateNode);
                        IDManager.SetID(excel_interestRateIDRef_, ob);
                    }
                    else if (excel_interestRateNode.Attributes["href"] != null)
                    {
                        excel_interestRateIDRef_ = excel_interestRateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_interestRate_ = new Excel_interestRate(excel_interestRateNode);
                    }
                }
                else
                {
                    excel_interestRate_ = new Excel_interestRate(excel_interestRateNode);
                }
            }


            XmlNode excel_indexTypeNode = xmlNode.SelectSingleNode("excel_indexType");

            if (excel_indexTypeNode != null)
            {
                if (excel_indexTypeNode.Attributes["href"] != null || excel_indexTypeNode.Attributes["id"] != null)
                {
                    if (excel_indexTypeNode.Attributes["id"] != null)
                    {
                        excel_indexTypeIDRef_ = excel_indexTypeNode.Attributes["id"].Value;
                        Excel_indexType ob = new Excel_indexType(excel_indexTypeNode);
                        IDManager.SetID(excel_indexTypeIDRef_, ob);
                    }
                    else if (excel_indexTypeNode.Attributes["href"] != null)
                    {
                        excel_indexTypeIDRef_ = excel_indexTypeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_indexType_ = new Excel_indexType(excel_indexTypeNode);
                    }
                }
                else
                {
                    excel_indexType_ = new Excel_indexType(excel_indexTypeNode);
                }
            }
        }