public InstrumentInfo(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode typeNode = xmlNode.SelectSingleNode("type");

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


            XmlNode standardInstrumentNode = xmlNode.SelectSingleNode("standardInstrument");

            if (standardInstrumentNode != null)
            {
                if (standardInstrumentNode.Attributes["href"] != null || standardInstrumentNode.Attributes["id"] != null)
                {
                    if (standardInstrumentNode.Attributes["id"] != null)
                    {
                        standardInstrumentIDRef_ = standardInstrumentNode.Attributes["id"].Value;
                        StandardInstrument ob = new StandardInstrument(standardInstrumentNode);
                        IDManager.SetID(standardInstrumentIDRef_, ob);
                    }
                    else if (standardInstrumentNode.Attributes["href"] != null)
                    {
                        standardInstrumentIDRef_ = standardInstrumentNode.Attributes["href"].Value;
                    }
                    else
                    {
                        standardInstrument_ = new StandardInstrument(standardInstrumentNode);
                    }
                }
                else
                {
                    standardInstrument_ = new StandardInstrument(standardInstrumentNode);
                }
            }


            XmlNode standardSwapInstrumentNode = xmlNode.SelectSingleNode("standardSwapInstrument");

            if (standardSwapInstrumentNode != null)
            {
                if (standardSwapInstrumentNode.Attributes["href"] != null || standardSwapInstrumentNode.Attributes["id"] != null)
                {
                    if (standardSwapInstrumentNode.Attributes["id"] != null)
                    {
                        standardSwapInstrumentIDRef_ = standardSwapInstrumentNode.Attributes["id"].Value;
                        StandardSwapInstrument ob = new StandardSwapInstrument(standardSwapInstrumentNode);
                        IDManager.SetID(standardSwapInstrumentIDRef_, ob);
                    }
                    else if (standardSwapInstrumentNode.Attributes["href"] != null)
                    {
                        standardSwapInstrumentIDRef_ = standardSwapInstrumentNode.Attributes["href"].Value;
                    }
                    else
                    {
                        standardSwapInstrument_ = new StandardSwapInstrument(standardSwapInstrumentNode);
                    }
                }
                else
                {
                    standardSwapInstrument_ = new StandardSwapInstrument(standardSwapInstrumentNode);
                }
            }


            XmlNode creditInstrumentNode = xmlNode.SelectSingleNode("creditInstrument");

            if (creditInstrumentNode != null)
            {
                if (creditInstrumentNode.Attributes["href"] != null || creditInstrumentNode.Attributes["id"] != null)
                {
                    if (creditInstrumentNode.Attributes["id"] != null)
                    {
                        creditInstrumentIDRef_ = creditInstrumentNode.Attributes["id"].Value;
                        CreditInstrument ob = new CreditInstrument(creditInstrumentNode);
                        IDManager.SetID(creditInstrumentIDRef_, ob);
                    }
                    else if (creditInstrumentNode.Attributes["href"] != null)
                    {
                        creditInstrumentIDRef_ = creditInstrumentNode.Attributes["href"].Value;
                    }
                    else
                    {
                        creditInstrument_ = new CreditInstrument(creditInstrumentNode);
                    }
                }
                else
                {
                    creditInstrument_ = new CreditInstrument(creditInstrumentNode);
                }
            }


            XmlNode fixedBondInstrumentNode = xmlNode.SelectSingleNode("fixedBondInstrument");

            if (fixedBondInstrumentNode != null)
            {
                if (fixedBondInstrumentNode.Attributes["href"] != null || fixedBondInstrumentNode.Attributes["id"] != null)
                {
                    if (fixedBondInstrumentNode.Attributes["id"] != null)
                    {
                        fixedBondInstrumentIDRef_ = fixedBondInstrumentNode.Attributes["id"].Value;
                        FixedBondInstrument ob = new FixedBondInstrument(fixedBondInstrumentNode);
                        IDManager.SetID(fixedBondInstrumentIDRef_, ob);
                    }
                    else if (fixedBondInstrumentNode.Attributes["href"] != null)
                    {
                        fixedBondInstrumentIDRef_ = fixedBondInstrumentNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fixedBondInstrument_ = new FixedBondInstrument(fixedBondInstrumentNode);
                    }
                }
                else
                {
                    fixedBondInstrument_ = new FixedBondInstrument(fixedBondInstrumentNode);
                }
            }
        }
 public InstrumentInfo(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode typeNode = xmlNode.SelectSingleNode("type");
     
     if (typeNode != null)
     {
         if (typeNode.Attributes["href"] != null || typeNode.Attributes["id"] != null) 
         {
             if (typeNode.Attributes["id"] != null) 
             {
                 typeIDRef_ = typeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(typeNode);
                 IDManager.SetID(typeIDRef_, ob);
             }
             else if (typeNode.Attributes["href"] != null)
             {
                 typeIDRef_ = typeNode.Attributes["href"].Value;
             }
             else
             {
                 type_ = new XsdTypeToken(typeNode);
             }
         }
         else
         {
             type_ = new XsdTypeToken(typeNode);
         }
     }
     
 
     XmlNode standardInstrumentNode = xmlNode.SelectSingleNode("standardInstrument");
     
     if (standardInstrumentNode != null)
     {
         if (standardInstrumentNode.Attributes["href"] != null || standardInstrumentNode.Attributes["id"] != null) 
         {
             if (standardInstrumentNode.Attributes["id"] != null) 
             {
                 standardInstrumentIDRef_ = standardInstrumentNode.Attributes["id"].Value;
                 StandardInstrument ob = new StandardInstrument(standardInstrumentNode);
                 IDManager.SetID(standardInstrumentIDRef_, ob);
             }
             else if (standardInstrumentNode.Attributes["href"] != null)
             {
                 standardInstrumentIDRef_ = standardInstrumentNode.Attributes["href"].Value;
             }
             else
             {
                 standardInstrument_ = new StandardInstrument(standardInstrumentNode);
             }
         }
         else
         {
             standardInstrument_ = new StandardInstrument(standardInstrumentNode);
         }
     }
     
 
     XmlNode standardSwapInstrumentNode = xmlNode.SelectSingleNode("standardSwapInstrument");
     
     if (standardSwapInstrumentNode != null)
     {
         if (standardSwapInstrumentNode.Attributes["href"] != null || standardSwapInstrumentNode.Attributes["id"] != null) 
         {
             if (standardSwapInstrumentNode.Attributes["id"] != null) 
             {
                 standardSwapInstrumentIDRef_ = standardSwapInstrumentNode.Attributes["id"].Value;
                 StandardSwapInstrument ob = new StandardSwapInstrument(standardSwapInstrumentNode);
                 IDManager.SetID(standardSwapInstrumentIDRef_, ob);
             }
             else if (standardSwapInstrumentNode.Attributes["href"] != null)
             {
                 standardSwapInstrumentIDRef_ = standardSwapInstrumentNode.Attributes["href"].Value;
             }
             else
             {
                 standardSwapInstrument_ = new StandardSwapInstrument(standardSwapInstrumentNode);
             }
         }
         else
         {
             standardSwapInstrument_ = new StandardSwapInstrument(standardSwapInstrumentNode);
         }
     }
     
 
     XmlNode creditInstrumentNode = xmlNode.SelectSingleNode("creditInstrument");
     
     if (creditInstrumentNode != null)
     {
         if (creditInstrumentNode.Attributes["href"] != null || creditInstrumentNode.Attributes["id"] != null) 
         {
             if (creditInstrumentNode.Attributes["id"] != null) 
             {
                 creditInstrumentIDRef_ = creditInstrumentNode.Attributes["id"].Value;
                 CreditInstrument ob = new CreditInstrument(creditInstrumentNode);
                 IDManager.SetID(creditInstrumentIDRef_, ob);
             }
             else if (creditInstrumentNode.Attributes["href"] != null)
             {
                 creditInstrumentIDRef_ = creditInstrumentNode.Attributes["href"].Value;
             }
             else
             {
                 creditInstrument_ = new CreditInstrument(creditInstrumentNode);
             }
         }
         else
         {
             creditInstrument_ = new CreditInstrument(creditInstrumentNode);
         }
     }
     
 
     XmlNode fixedBondInstrumentNode = xmlNode.SelectSingleNode("fixedBondInstrument");
     
     if (fixedBondInstrumentNode != null)
     {
         if (fixedBondInstrumentNode.Attributes["href"] != null || fixedBondInstrumentNode.Attributes["id"] != null) 
         {
             if (fixedBondInstrumentNode.Attributes["id"] != null) 
             {
                 fixedBondInstrumentIDRef_ = fixedBondInstrumentNode.Attributes["id"].Value;
                 FixedBondInstrument ob = new FixedBondInstrument(fixedBondInstrumentNode);
                 IDManager.SetID(fixedBondInstrumentIDRef_, ob);
             }
             else if (fixedBondInstrumentNode.Attributes["href"] != null)
             {
                 fixedBondInstrumentIDRef_ = fixedBondInstrumentNode.Attributes["href"].Value;
             }
             else
             {
                 fixedBondInstrument_ = new FixedBondInstrument(fixedBondInstrumentNode);
             }
         }
         else
         {
             fixedBondInstrument_ = new FixedBondInstrument(fixedBondInstrumentNode);
         }
     }
     
 
 }