public Excel_swapInterface(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_irsNode = xmlNode.SelectSingleNode("excel_irs");
     
     if (excel_irsNode != null)
     {
         if (excel_irsNode.Attributes["href"] != null || excel_irsNode.Attributes["id"] != null) 
         {
             if (excel_irsNode.Attributes["id"] != null) 
             {
                 excel_irsIDRef_ = excel_irsNode.Attributes["id"].Value;
                 Excel_irs ob = new Excel_irs(excel_irsNode);
                 IDManager.SetID(excel_irsIDRef_, ob);
             }
             else if (excel_irsNode.Attributes["href"] != null)
             {
                 excel_irsIDRef_ = excel_irsNode.Attributes["href"].Value;
             }
             else
             {
                 excel_irs_ = new Excel_irs(excel_irsNode);
             }
         }
         else
         {
             excel_irs_ = new Excel_irs(excel_irsNode);
         }
     }
     
 
     XmlNode excel_crsNode = xmlNode.SelectSingleNode("excel_crs");
     
     if (excel_crsNode != null)
     {
         if (excel_crsNode.Attributes["href"] != null || excel_crsNode.Attributes["id"] != null) 
         {
             if (excel_crsNode.Attributes["id"] != null) 
             {
                 excel_crsIDRef_ = excel_crsNode.Attributes["id"].Value;
                 Excel_crs ob = new Excel_crs(excel_crsNode);
                 IDManager.SetID(excel_crsIDRef_, ob);
             }
             else if (excel_crsNode.Attributes["href"] != null)
             {
                 excel_crsIDRef_ = excel_crsNode.Attributes["href"].Value;
             }
             else
             {
                 excel_crs_ = new Excel_crs(excel_crsNode);
             }
         }
         else
         {
             excel_crs_ = new Excel_crs(excel_crsNode);
         }
     }
     
 
     XmlNode excel_cdsNode = xmlNode.SelectSingleNode("excel_cds");
     
     if (excel_cdsNode != null)
     {
         if (excel_cdsNode.Attributes["href"] != null || excel_cdsNode.Attributes["id"] != null) 
         {
             if (excel_cdsNode.Attributes["id"] != null) 
             {
                 excel_cdsIDRef_ = excel_cdsNode.Attributes["id"].Value;
                 Excel_cds ob = new Excel_cds(excel_cdsNode);
                 IDManager.SetID(excel_cdsIDRef_, ob);
             }
             else if (excel_cdsNode.Attributes["href"] != null)
             {
                 excel_cdsIDRef_ = excel_cdsNode.Attributes["href"].Value;
             }
             else
             {
                 excel_cds_ = new Excel_cds(excel_cdsNode);
             }
         }
         else
         {
             excel_cds_ = new Excel_cds(excel_cdsNode);
         }
     }
     
 
     XmlNode excel_structuredSwapNode = xmlNode.SelectSingleNode("excel_structuredSwap");
     
     if (excel_structuredSwapNode != null)
     {
         if (excel_structuredSwapNode.Attributes["href"] != null || excel_structuredSwapNode.Attributes["id"] != null) 
         {
             if (excel_structuredSwapNode.Attributes["id"] != null) 
             {
                 excel_structuredSwapIDRef_ = excel_structuredSwapNode.Attributes["id"].Value;
                 Excel_structuredSwap ob = new Excel_structuredSwap(excel_structuredSwapNode);
                 IDManager.SetID(excel_structuredSwapIDRef_, ob);
             }
             else if (excel_structuredSwapNode.Attributes["href"] != null)
             {
                 excel_structuredSwapIDRef_ = excel_structuredSwapNode.Attributes["href"].Value;
             }
             else
             {
                 excel_structuredSwap_ = new Excel_structuredSwap(excel_structuredSwapNode);
             }
         }
         else
         {
             excel_structuredSwap_ = new Excel_structuredSwap(excel_structuredSwapNode);
         }
     }
     
 
 }
Пример #2
0
        public Excel_swapInterface(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_irsNode = xmlNode.SelectSingleNode("excel_irs");

            if (excel_irsNode != null)
            {
                if (excel_irsNode.Attributes["href"] != null || excel_irsNode.Attributes["id"] != null)
                {
                    if (excel_irsNode.Attributes["id"] != null)
                    {
                        excel_irsIDRef_ = excel_irsNode.Attributes["id"].Value;
                        Excel_irs ob = new Excel_irs(excel_irsNode);
                        IDManager.SetID(excel_irsIDRef_, ob);
                    }
                    else if (excel_irsNode.Attributes["href"] != null)
                    {
                        excel_irsIDRef_ = excel_irsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_irs_ = new Excel_irs(excel_irsNode);
                    }
                }
                else
                {
                    excel_irs_ = new Excel_irs(excel_irsNode);
                }
            }


            XmlNode excel_crsNode = xmlNode.SelectSingleNode("excel_crs");

            if (excel_crsNode != null)
            {
                if (excel_crsNode.Attributes["href"] != null || excel_crsNode.Attributes["id"] != null)
                {
                    if (excel_crsNode.Attributes["id"] != null)
                    {
                        excel_crsIDRef_ = excel_crsNode.Attributes["id"].Value;
                        Excel_crs ob = new Excel_crs(excel_crsNode);
                        IDManager.SetID(excel_crsIDRef_, ob);
                    }
                    else if (excel_crsNode.Attributes["href"] != null)
                    {
                        excel_crsIDRef_ = excel_crsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_crs_ = new Excel_crs(excel_crsNode);
                    }
                }
                else
                {
                    excel_crs_ = new Excel_crs(excel_crsNode);
                }
            }


            XmlNode excel_cdsNode = xmlNode.SelectSingleNode("excel_cds");

            if (excel_cdsNode != null)
            {
                if (excel_cdsNode.Attributes["href"] != null || excel_cdsNode.Attributes["id"] != null)
                {
                    if (excel_cdsNode.Attributes["id"] != null)
                    {
                        excel_cdsIDRef_ = excel_cdsNode.Attributes["id"].Value;
                        Excel_cds ob = new Excel_cds(excel_cdsNode);
                        IDManager.SetID(excel_cdsIDRef_, ob);
                    }
                    else if (excel_cdsNode.Attributes["href"] != null)
                    {
                        excel_cdsIDRef_ = excel_cdsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_cds_ = new Excel_cds(excel_cdsNode);
                    }
                }
                else
                {
                    excel_cds_ = new Excel_cds(excel_cdsNode);
                }
            }


            XmlNode excel_structuredSwapNode = xmlNode.SelectSingleNode("excel_structuredSwap");

            if (excel_structuredSwapNode != null)
            {
                if (excel_structuredSwapNode.Attributes["href"] != null || excel_structuredSwapNode.Attributes["id"] != null)
                {
                    if (excel_structuredSwapNode.Attributes["id"] != null)
                    {
                        excel_structuredSwapIDRef_ = excel_structuredSwapNode.Attributes["id"].Value;
                        Excel_structuredSwap ob = new Excel_structuredSwap(excel_structuredSwapNode);
                        IDManager.SetID(excel_structuredSwapIDRef_, ob);
                    }
                    else if (excel_structuredSwapNode.Attributes["href"] != null)
                    {
                        excel_structuredSwapIDRef_ = excel_structuredSwapNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_structuredSwap_ = new Excel_structuredSwap(excel_structuredSwapNode);
                    }
                }
                else
                {
                    excel_structuredSwap_ = new Excel_structuredSwap(excel_structuredSwapNode);
                }
            }
        }