public Instrument(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode codeNode = xmlNode.SelectSingleNode("code");

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


            XmlNode excel_interfaceNode = xmlNode.SelectSingleNode("excel_interface");

            if (excel_interfaceNode != null)
            {
                if (excel_interfaceNode.Attributes["href"] != null || excel_interfaceNode.Attributes["id"] != null)
                {
                    if (excel_interfaceNode.Attributes["id"] != null)
                    {
                        excel_interfaceIDRef_ = excel_interfaceNode.Attributes["id"].Value;
                        Excel_interface ob = new Excel_interface(excel_interfaceNode);
                        IDManager.SetID(excel_interfaceIDRef_, ob);
                    }
                    else if (excel_interfaceNode.Attributes["href"] != null)
                    {
                        excel_interfaceIDRef_ = excel_interfaceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_interface_ = new Excel_interface(excel_interfaceNode);
                    }
                }
                else
                {
                    excel_interface_ = new Excel_interface(excel_interfaceNode);
                }
            }


            XmlNode excel_swapInterfaceNode = xmlNode.SelectSingleNode("excel_swapInterface");

            if (excel_swapInterfaceNode != null)
            {
                if (excel_swapInterfaceNode.Attributes["href"] != null || excel_swapInterfaceNode.Attributes["id"] != null)
                {
                    if (excel_swapInterfaceNode.Attributes["id"] != null)
                    {
                        excel_swapInterfaceIDRef_ = excel_swapInterfaceNode.Attributes["id"].Value;
                        Excel_swapInterface ob = new Excel_swapInterface(excel_swapInterfaceNode);
                        IDManager.SetID(excel_swapInterfaceIDRef_, ob);
                    }
                    else if (excel_swapInterfaceNode.Attributes["href"] != null)
                    {
                        excel_swapInterfaceIDRef_ = excel_swapInterfaceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        excel_swapInterface_ = new Excel_swapInterface(excel_swapInterfaceNode);
                    }
                }
                else
                {
                    excel_swapInterface_ = new Excel_swapInterface(excel_swapInterfaceNode);
                }
            }
        }
 public Instrument(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode codeNode = xmlNode.SelectSingleNode("code");
     
     if (codeNode != null)
     {
         if (codeNode.Attributes["href"] != null || codeNode.Attributes["id"] != null) 
         {
             if (codeNode.Attributes["id"] != null) 
             {
                 codeIDRef_ = codeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(codeNode);
                 IDManager.SetID(codeIDRef_, ob);
             }
             else if (codeNode.Attributes["href"] != null)
             {
                 codeIDRef_ = codeNode.Attributes["href"].Value;
             }
             else
             {
                 code_ = new XsdTypeToken(codeNode);
             }
         }
         else
         {
             code_ = new XsdTypeToken(codeNode);
         }
     }
     
 
     XmlNode excel_interfaceNode = xmlNode.SelectSingleNode("excel_interface");
     
     if (excel_interfaceNode != null)
     {
         if (excel_interfaceNode.Attributes["href"] != null || excel_interfaceNode.Attributes["id"] != null) 
         {
             if (excel_interfaceNode.Attributes["id"] != null) 
             {
                 excel_interfaceIDRef_ = excel_interfaceNode.Attributes["id"].Value;
                 Excel_interface ob = new Excel_interface(excel_interfaceNode);
                 IDManager.SetID(excel_interfaceIDRef_, ob);
             }
             else if (excel_interfaceNode.Attributes["href"] != null)
             {
                 excel_interfaceIDRef_ = excel_interfaceNode.Attributes["href"].Value;
             }
             else
             {
                 excel_interface_ = new Excel_interface(excel_interfaceNode);
             }
         }
         else
         {
             excel_interface_ = new Excel_interface(excel_interfaceNode);
         }
     }
     
 
     XmlNode excel_swapInterfaceNode = xmlNode.SelectSingleNode("excel_swapInterface");
     
     if (excel_swapInterfaceNode != null)
     {
         if (excel_swapInterfaceNode.Attributes["href"] != null || excel_swapInterfaceNode.Attributes["id"] != null) 
         {
             if (excel_swapInterfaceNode.Attributes["id"] != null) 
             {
                 excel_swapInterfaceIDRef_ = excel_swapInterfaceNode.Attributes["id"].Value;
                 Excel_swapInterface ob = new Excel_swapInterface(excel_swapInterfaceNode);
                 IDManager.SetID(excel_swapInterfaceIDRef_, ob);
             }
             else if (excel_swapInterfaceNode.Attributes["href"] != null)
             {
                 excel_swapInterfaceIDRef_ = excel_swapInterfaceNode.Attributes["href"].Value;
             }
             else
             {
                 excel_swapInterface_ = new Excel_swapInterface(excel_swapInterfaceNode);
             }
         }
         else
         {
             excel_swapInterface_ = new Excel_swapInterface(excel_swapInterfaceNode);
         }
     }
     
 
 }