Ejemplo n.º 1
0
 public Root(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode instrumentNode = xmlNode.SelectSingleNode("instrument");
     
     if (instrumentNode != null)
     {
         if (instrumentNode.Attributes["href"] != null || instrumentNode.Attributes["id"] != null) 
         {
             if (instrumentNode.Attributes["id"] != null) 
             {
                 instrumentIDRef_ = instrumentNode.Attributes["id"].Value;
                 Instrument ob = new Instrument(instrumentNode);
                 IDManager.SetID(instrumentIDRef_, ob);
             }
             else if (instrumentNode.Attributes["href"] != null)
             {
                 instrumentIDRef_ = instrumentNode.Attributes["href"].Value;
             }
             else
             {
                 instrument_ = new Instrument(instrumentNode);
             }
         }
         else
         {
             instrument_ = new Instrument(instrumentNode);
         }
     }
     
 
 }
 public ProductInnerXml(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode instrumentNode = xmlNode.SelectSingleNode("instrument");
     
     if (instrumentNode != null)
     {
         if (instrumentNode.Attributes["href"] != null || instrumentNode.Attributes["id"] != null) 
         {
             if (instrumentNode.Attributes["id"] != null) 
             {
                 instrumentIDRef_ = instrumentNode.Attributes["id"].Value;
                 Instrument ob = new Instrument(instrumentNode);
                 IDManager.SetID(instrumentIDRef_, ob);
             }
             else if (instrumentNode.Attributes["href"] != null)
             {
                 instrumentIDRef_ = instrumentNode.Attributes["href"].Value;
             }
             else
             {
                 instrument_ = new Instrument(instrumentNode);
             }
         }
         else
         {
             instrument_ = new Instrument(instrumentNode);
         }
     }
     
 
     XmlNode pricingNode = xmlNode.SelectSingleNode("pricing");
     
     if (pricingNode != null)
     {
         if (pricingNode.Attributes["href"] != null || pricingNode.Attributes["id"] != null) 
         {
             if (pricingNode.Attributes["id"] != null) 
             {
                 pricingIDRef_ = pricingNode.Attributes["id"].Value;
                 Pricing ob = new Pricing(pricingNode);
                 IDManager.SetID(pricingIDRef_, ob);
             }
             else if (pricingNode.Attributes["href"] != null)
             {
                 pricingIDRef_ = pricingNode.Attributes["href"].Value;
             }
             else
             {
                 pricing_ = new Pricing(pricingNode);
             }
         }
         else
         {
             pricing_ = new Pricing(pricingNode);
         }
     }
     
 
     XmlNode hisoryDataNode = xmlNode.SelectSingleNode("hisoryData");
     
     if (hisoryDataNode != null)
     {
         if (hisoryDataNode.Attributes["href"] != null || hisoryDataNode.Attributes["id"] != null) 
         {
             if (hisoryDataNode.Attributes["id"] != null) 
             {
                 hisoryDataIDRef_ = hisoryDataNode.Attributes["id"].Value;
                 HisoryData ob = new HisoryData(hisoryDataNode);
                 IDManager.SetID(hisoryDataIDRef_, ob);
             }
             else if (hisoryDataNode.Attributes["href"] != null)
             {
                 hisoryDataIDRef_ = hisoryDataNode.Attributes["href"].Value;
             }
             else
             {
                 hisoryData_ = new HisoryData(hisoryDataNode);
             }
         }
         else
         {
             hisoryData_ = new HisoryData(hisoryDataNode);
         }
     }
     
 
 }
Ejemplo n.º 3
0
        public ProductInnerXml(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode instrumentNode = xmlNode.SelectSingleNode("instrument");

            if (instrumentNode != null)
            {
                if (instrumentNode.Attributes["href"] != null || instrumentNode.Attributes["id"] != null)
                {
                    if (instrumentNode.Attributes["id"] != null)
                    {
                        instrumentIDRef_ = instrumentNode.Attributes["id"].Value;
                        Instrument ob = new Instrument(instrumentNode);
                        IDManager.SetID(instrumentIDRef_, ob);
                    }
                    else if (instrumentNode.Attributes["href"] != null)
                    {
                        instrumentIDRef_ = instrumentNode.Attributes["href"].Value;
                    }
                    else
                    {
                        instrument_ = new Instrument(instrumentNode);
                    }
                }
                else
                {
                    instrument_ = new Instrument(instrumentNode);
                }
            }


            XmlNode pricingNode = xmlNode.SelectSingleNode("pricing");

            if (pricingNode != null)
            {
                if (pricingNode.Attributes["href"] != null || pricingNode.Attributes["id"] != null)
                {
                    if (pricingNode.Attributes["id"] != null)
                    {
                        pricingIDRef_ = pricingNode.Attributes["id"].Value;
                        Pricing ob = new Pricing(pricingNode);
                        IDManager.SetID(pricingIDRef_, ob);
                    }
                    else if (pricingNode.Attributes["href"] != null)
                    {
                        pricingIDRef_ = pricingNode.Attributes["href"].Value;
                    }
                    else
                    {
                        pricing_ = new Pricing(pricingNode);
                    }
                }
                else
                {
                    pricing_ = new Pricing(pricingNode);
                }
            }


            XmlNode hisoryDataNode = xmlNode.SelectSingleNode("hisoryData");

            if (hisoryDataNode != null)
            {
                if (hisoryDataNode.Attributes["href"] != null || hisoryDataNode.Attributes["id"] != null)
                {
                    if (hisoryDataNode.Attributes["id"] != null)
                    {
                        hisoryDataIDRef_ = hisoryDataNode.Attributes["id"].Value;
                        HisoryData ob = new HisoryData(hisoryDataNode);
                        IDManager.SetID(hisoryDataIDRef_, ob);
                    }
                    else if (hisoryDataNode.Attributes["href"] != null)
                    {
                        hisoryDataIDRef_ = hisoryDataNode.Attributes["href"].Value;
                    }
                    else
                    {
                        hisoryData_ = new HisoryData(hisoryDataNode);
                    }
                }
                else
                {
                    hisoryData_ = new HisoryData(hisoryDataNode);
                }
            }
        }