public Price(XmlNode xmlNode)
        {
            XmlNode commissionNode = xmlNode.SelectSingleNode("commission");

            if (commissionNode != null)
            {
                if (commissionNode.Attributes["href"] != null || commissionNode.Attributes["id"] != null)
                {
                    if (commissionNode.Attributes["id"] != null)
                    {
                        commissionIDRef_ = commissionNode.Attributes["id"].Value;
                        Commission ob = new Commission(commissionNode);
                        IDManager.SetID(commissionIDRef_, ob);
                    }
                    else if (commissionNode.Attributes["href"] != null)
                    {
                        commissionIDRef_ = commissionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        commission_ = new Commission(commissionNode);
                    }
                }
                else
                {
                    commission_ = new Commission(commissionNode);
                }
            }


            XmlNode determinationMethodNode = xmlNode.SelectSingleNode("determinationMethod");

            if (determinationMethodNode != null)
            {
                if (determinationMethodNode.Attributes["href"] != null || determinationMethodNode.Attributes["id"] != null)
                {
                    if (determinationMethodNode.Attributes["id"] != null)
                    {
                        determinationMethodIDRef_ = determinationMethodNode.Attributes["id"].Value;
                        DeterminationMethod ob = new DeterminationMethod(determinationMethodNode);
                        IDManager.SetID(determinationMethodIDRef_, ob);
                    }
                    else if (determinationMethodNode.Attributes["href"] != null)
                    {
                        determinationMethodIDRef_ = determinationMethodNode.Attributes["href"].Value;
                    }
                    else
                    {
                        determinationMethod_ = new DeterminationMethod(determinationMethodNode);
                    }
                }
                else
                {
                    determinationMethod_ = new DeterminationMethod(determinationMethodNode);
                }
            }


            XmlNode grossPriceNode = xmlNode.SelectSingleNode("grossPrice");

            if (grossPriceNode != null)
            {
                if (grossPriceNode.Attributes["href"] != null || grossPriceNode.Attributes["id"] != null)
                {
                    if (grossPriceNode.Attributes["id"] != null)
                    {
                        grossPriceIDRef_ = grossPriceNode.Attributes["id"].Value;
                        ActualPrice ob = new ActualPrice(grossPriceNode);
                        IDManager.SetID(grossPriceIDRef_, ob);
                    }
                    else if (grossPriceNode.Attributes["href"] != null)
                    {
                        grossPriceIDRef_ = grossPriceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        grossPrice_ = new ActualPrice(grossPriceNode);
                    }
                }
                else
                {
                    grossPrice_ = new ActualPrice(grossPriceNode);
                }
            }


            XmlNode netPriceNode = xmlNode.SelectSingleNode("netPrice");

            if (netPriceNode != null)
            {
                if (netPriceNode.Attributes["href"] != null || netPriceNode.Attributes["id"] != null)
                {
                    if (netPriceNode.Attributes["id"] != null)
                    {
                        netPriceIDRef_ = netPriceNode.Attributes["id"].Value;
                        ActualPrice ob = new ActualPrice(netPriceNode);
                        IDManager.SetID(netPriceIDRef_, ob);
                    }
                    else if (netPriceNode.Attributes["href"] != null)
                    {
                        netPriceIDRef_ = netPriceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        netPrice_ = new ActualPrice(netPriceNode);
                    }
                }
                else
                {
                    netPrice_ = new ActualPrice(netPriceNode);
                }
            }


            XmlNode accruedInterestPriceNode = xmlNode.SelectSingleNode("accruedInterestPrice");

            if (accruedInterestPriceNode != null)
            {
                if (accruedInterestPriceNode.Attributes["href"] != null || accruedInterestPriceNode.Attributes["id"] != null)
                {
                    if (accruedInterestPriceNode.Attributes["id"] != null)
                    {
                        accruedInterestPriceIDRef_ = accruedInterestPriceNode.Attributes["id"].Value;
                        XsdTypeDecimal ob = new XsdTypeDecimal(accruedInterestPriceNode);
                        IDManager.SetID(accruedInterestPriceIDRef_, ob);
                    }
                    else if (accruedInterestPriceNode.Attributes["href"] != null)
                    {
                        accruedInterestPriceIDRef_ = accruedInterestPriceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        accruedInterestPrice_ = new XsdTypeDecimal(accruedInterestPriceNode);
                    }
                }
                else
                {
                    accruedInterestPrice_ = new XsdTypeDecimal(accruedInterestPriceNode);
                }
            }


            XmlNode fxConversionNode = xmlNode.SelectSingleNode("fxConversion");

            if (fxConversionNode != null)
            {
                if (fxConversionNode.Attributes["href"] != null || fxConversionNode.Attributes["id"] != null)
                {
                    if (fxConversionNode.Attributes["id"] != null)
                    {
                        fxConversionIDRef_ = fxConversionNode.Attributes["id"].Value;
                        FxConversion ob = new FxConversion(fxConversionNode);
                        IDManager.SetID(fxConversionIDRef_, ob);
                    }
                    else if (fxConversionNode.Attributes["href"] != null)
                    {
                        fxConversionIDRef_ = fxConversionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fxConversion_ = new FxConversion(fxConversionNode);
                    }
                }
                else
                {
                    fxConversion_ = new FxConversion(fxConversionNode);
                }
            }


            XmlNode amountRelativeToNode = xmlNode.SelectSingleNode("amountRelativeTo");

            if (amountRelativeToNode != null)
            {
                if (amountRelativeToNode.Attributes["href"] != null || amountRelativeToNode.Attributes["id"] != null)
                {
                    if (amountRelativeToNode.Attributes["id"] != null)
                    {
                        amountRelativeToIDRef_ = amountRelativeToNode.Attributes["id"].Value;
                        AmountReference ob = new AmountReference(amountRelativeToNode);
                        IDManager.SetID(amountRelativeToIDRef_, ob);
                    }
                    else if (amountRelativeToNode.Attributes["href"] != null)
                    {
                        amountRelativeToIDRef_ = amountRelativeToNode.Attributes["href"].Value;
                    }
                    else
                    {
                        amountRelativeTo_ = new AmountReference(amountRelativeToNode);
                    }
                }
                else
                {
                    amountRelativeTo_ = new AmountReference(amountRelativeToNode);
                }
            }


            XmlNode cleanNetPriceNode = xmlNode.SelectSingleNode("cleanNetPrice");

            if (cleanNetPriceNode != null)
            {
                if (cleanNetPriceNode.Attributes["href"] != null || cleanNetPriceNode.Attributes["id"] != null)
                {
                    if (cleanNetPriceNode.Attributes["id"] != null)
                    {
                        cleanNetPriceIDRef_ = cleanNetPriceNode.Attributes["id"].Value;
                        XsdTypeDecimal ob = new XsdTypeDecimal(cleanNetPriceNode);
                        IDManager.SetID(cleanNetPriceIDRef_, ob);
                    }
                    else if (cleanNetPriceNode.Attributes["href"] != null)
                    {
                        cleanNetPriceIDRef_ = cleanNetPriceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        cleanNetPrice_ = new XsdTypeDecimal(cleanNetPriceNode);
                    }
                }
                else
                {
                    cleanNetPrice_ = new XsdTypeDecimal(cleanNetPriceNode);
                }
            }


            XmlNode quotationCharacteristicsNode = xmlNode.SelectSingleNode("quotationCharacteristics");

            if (quotationCharacteristicsNode != null)
            {
                if (quotationCharacteristicsNode.Attributes["href"] != null || quotationCharacteristicsNode.Attributes["id"] != null)
                {
                    if (quotationCharacteristicsNode.Attributes["id"] != null)
                    {
                        quotationCharacteristicsIDRef_ = quotationCharacteristicsNode.Attributes["id"].Value;
                        QuotationCharacteristics ob = new QuotationCharacteristics(quotationCharacteristicsNode);
                        IDManager.SetID(quotationCharacteristicsIDRef_, ob);
                    }
                    else if (quotationCharacteristicsNode.Attributes["href"] != null)
                    {
                        quotationCharacteristicsIDRef_ = quotationCharacteristicsNode.Attributes["href"].Value;
                    }
                    else
                    {
                        quotationCharacteristics_ = new QuotationCharacteristics(quotationCharacteristicsNode);
                    }
                }
                else
                {
                    quotationCharacteristics_ = new QuotationCharacteristics(quotationCharacteristicsNode);
                }
            }
        }
 public Price(XmlNode xmlNode)
 {
     XmlNode commissionNode = xmlNode.SelectSingleNode("commission");
     
     if (commissionNode != null)
     {
         if (commissionNode.Attributes["href"] != null || commissionNode.Attributes["id"] != null) 
         {
             if (commissionNode.Attributes["id"] != null) 
             {
                 commissionIDRef_ = commissionNode.Attributes["id"].Value;
                 Commission ob = new Commission(commissionNode);
                 IDManager.SetID(commissionIDRef_, ob);
             }
             else if (commissionNode.Attributes["href"] != null)
             {
                 commissionIDRef_ = commissionNode.Attributes["href"].Value;
             }
             else
             {
                 commission_ = new Commission(commissionNode);
             }
         }
         else
         {
             commission_ = new Commission(commissionNode);
         }
     }
     
 
     XmlNode determinationMethodNode = xmlNode.SelectSingleNode("determinationMethod");
     
     if (determinationMethodNode != null)
     {
         if (determinationMethodNode.Attributes["href"] != null || determinationMethodNode.Attributes["id"] != null) 
         {
             if (determinationMethodNode.Attributes["id"] != null) 
             {
                 determinationMethodIDRef_ = determinationMethodNode.Attributes["id"].Value;
                 DeterminationMethod ob = new DeterminationMethod(determinationMethodNode);
                 IDManager.SetID(determinationMethodIDRef_, ob);
             }
             else if (determinationMethodNode.Attributes["href"] != null)
             {
                 determinationMethodIDRef_ = determinationMethodNode.Attributes["href"].Value;
             }
             else
             {
                 determinationMethod_ = new DeterminationMethod(determinationMethodNode);
             }
         }
         else
         {
             determinationMethod_ = new DeterminationMethod(determinationMethodNode);
         }
     }
     
 
     XmlNode grossPriceNode = xmlNode.SelectSingleNode("grossPrice");
     
     if (grossPriceNode != null)
     {
         if (grossPriceNode.Attributes["href"] != null || grossPriceNode.Attributes["id"] != null) 
         {
             if (grossPriceNode.Attributes["id"] != null) 
             {
                 grossPriceIDRef_ = grossPriceNode.Attributes["id"].Value;
                 ActualPrice ob = new ActualPrice(grossPriceNode);
                 IDManager.SetID(grossPriceIDRef_, ob);
             }
             else if (grossPriceNode.Attributes["href"] != null)
             {
                 grossPriceIDRef_ = grossPriceNode.Attributes["href"].Value;
             }
             else
             {
                 grossPrice_ = new ActualPrice(grossPriceNode);
             }
         }
         else
         {
             grossPrice_ = new ActualPrice(grossPriceNode);
         }
     }
     
 
     XmlNode netPriceNode = xmlNode.SelectSingleNode("netPrice");
     
     if (netPriceNode != null)
     {
         if (netPriceNode.Attributes["href"] != null || netPriceNode.Attributes["id"] != null) 
         {
             if (netPriceNode.Attributes["id"] != null) 
             {
                 netPriceIDRef_ = netPriceNode.Attributes["id"].Value;
                 ActualPrice ob = new ActualPrice(netPriceNode);
                 IDManager.SetID(netPriceIDRef_, ob);
             }
             else if (netPriceNode.Attributes["href"] != null)
             {
                 netPriceIDRef_ = netPriceNode.Attributes["href"].Value;
             }
             else
             {
                 netPrice_ = new ActualPrice(netPriceNode);
             }
         }
         else
         {
             netPrice_ = new ActualPrice(netPriceNode);
         }
     }
     
 
     XmlNode accruedInterestPriceNode = xmlNode.SelectSingleNode("accruedInterestPrice");
     
     if (accruedInterestPriceNode != null)
     {
         if (accruedInterestPriceNode.Attributes["href"] != null || accruedInterestPriceNode.Attributes["id"] != null) 
         {
             if (accruedInterestPriceNode.Attributes["id"] != null) 
             {
                 accruedInterestPriceIDRef_ = accruedInterestPriceNode.Attributes["id"].Value;
                 XsdTypeDecimal ob = new XsdTypeDecimal(accruedInterestPriceNode);
                 IDManager.SetID(accruedInterestPriceIDRef_, ob);
             }
             else if (accruedInterestPriceNode.Attributes["href"] != null)
             {
                 accruedInterestPriceIDRef_ = accruedInterestPriceNode.Attributes["href"].Value;
             }
             else
             {
                 accruedInterestPrice_ = new XsdTypeDecimal(accruedInterestPriceNode);
             }
         }
         else
         {
             accruedInterestPrice_ = new XsdTypeDecimal(accruedInterestPriceNode);
         }
     }
     
 
     XmlNode fxConversionNode = xmlNode.SelectSingleNode("fxConversion");
     
     if (fxConversionNode != null)
     {
         if (fxConversionNode.Attributes["href"] != null || fxConversionNode.Attributes["id"] != null) 
         {
             if (fxConversionNode.Attributes["id"] != null) 
             {
                 fxConversionIDRef_ = fxConversionNode.Attributes["id"].Value;
                 FxConversion ob = new FxConversion(fxConversionNode);
                 IDManager.SetID(fxConversionIDRef_, ob);
             }
             else if (fxConversionNode.Attributes["href"] != null)
             {
                 fxConversionIDRef_ = fxConversionNode.Attributes["href"].Value;
             }
             else
             {
                 fxConversion_ = new FxConversion(fxConversionNode);
             }
         }
         else
         {
             fxConversion_ = new FxConversion(fxConversionNode);
         }
     }
     
 
     XmlNode amountRelativeToNode = xmlNode.SelectSingleNode("amountRelativeTo");
     
     if (amountRelativeToNode != null)
     {
         if (amountRelativeToNode.Attributes["href"] != null || amountRelativeToNode.Attributes["id"] != null) 
         {
             if (amountRelativeToNode.Attributes["id"] != null) 
             {
                 amountRelativeToIDRef_ = amountRelativeToNode.Attributes["id"].Value;
                 AmountReference ob = new AmountReference(amountRelativeToNode);
                 IDManager.SetID(amountRelativeToIDRef_, ob);
             }
             else if (amountRelativeToNode.Attributes["href"] != null)
             {
                 amountRelativeToIDRef_ = amountRelativeToNode.Attributes["href"].Value;
             }
             else
             {
                 amountRelativeTo_ = new AmountReference(amountRelativeToNode);
             }
         }
         else
         {
             amountRelativeTo_ = new AmountReference(amountRelativeToNode);
         }
     }
     
 
     XmlNode cleanNetPriceNode = xmlNode.SelectSingleNode("cleanNetPrice");
     
     if (cleanNetPriceNode != null)
     {
         if (cleanNetPriceNode.Attributes["href"] != null || cleanNetPriceNode.Attributes["id"] != null) 
         {
             if (cleanNetPriceNode.Attributes["id"] != null) 
             {
                 cleanNetPriceIDRef_ = cleanNetPriceNode.Attributes["id"].Value;
                 XsdTypeDecimal ob = new XsdTypeDecimal(cleanNetPriceNode);
                 IDManager.SetID(cleanNetPriceIDRef_, ob);
             }
             else if (cleanNetPriceNode.Attributes["href"] != null)
             {
                 cleanNetPriceIDRef_ = cleanNetPriceNode.Attributes["href"].Value;
             }
             else
             {
                 cleanNetPrice_ = new XsdTypeDecimal(cleanNetPriceNode);
             }
         }
         else
         {
             cleanNetPrice_ = new XsdTypeDecimal(cleanNetPriceNode);
         }
     }
     
 
     XmlNode quotationCharacteristicsNode = xmlNode.SelectSingleNode("quotationCharacteristics");
     
     if (quotationCharacteristicsNode != null)
     {
         if (quotationCharacteristicsNode.Attributes["href"] != null || quotationCharacteristicsNode.Attributes["id"] != null) 
         {
             if (quotationCharacteristicsNode.Attributes["id"] != null) 
             {
                 quotationCharacteristicsIDRef_ = quotationCharacteristicsNode.Attributes["id"].Value;
                 QuotationCharacteristics ob = new QuotationCharacteristics(quotationCharacteristicsNode);
                 IDManager.SetID(quotationCharacteristicsIDRef_, ob);
             }
             else if (quotationCharacteristicsNode.Attributes["href"] != null)
             {
                 quotationCharacteristicsIDRef_ = quotationCharacteristicsNode.Attributes["href"].Value;
             }
             else
             {
                 quotationCharacteristics_ = new QuotationCharacteristics(quotationCharacteristicsNode);
             }
         }
         else
         {
             quotationCharacteristics_ = new QuotationCharacteristics(quotationCharacteristicsNode);
         }
     }
     
 
 }
 public Price(XmlNode xmlNode)
 {
     XmlNodeList commissionNodeList = xmlNode.SelectNodes("commission");
     if (commissionNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in commissionNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 commissionIDRef = item.Attributes["id"].Name;
                 Commission ob = Commission();
                 IDManager.SetID(commissionIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 commissionIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 commission = new Commission(item);
             }
         }
     }
     
 
     XmlNodeList determinationMethodNodeList = xmlNode.SelectNodes("determinationMethod");
     if (determinationMethodNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in determinationMethodNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 determinationMethodIDRef = item.Attributes["id"].Name;
                 DeterminationMethod ob = DeterminationMethod();
                 IDManager.SetID(determinationMethodIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 determinationMethodIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 determinationMethod = new DeterminationMethod(item);
             }
         }
     }
     
 
     XmlNodeList grossPriceNodeList = xmlNode.SelectNodes("grossPrice");
     if (grossPriceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in grossPriceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 grossPriceIDRef = item.Attributes["id"].Name;
                 ActualPrice ob = ActualPrice();
                 IDManager.SetID(grossPriceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 grossPriceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 grossPrice = new ActualPrice(item);
             }
         }
     }
     
 
     XmlNodeList netPriceNodeList = xmlNode.SelectNodes("netPrice");
     if (netPriceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in netPriceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 netPriceIDRef = item.Attributes["id"].Name;
                 ActualPrice ob = ActualPrice();
                 IDManager.SetID(netPriceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 netPriceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 netPrice = new ActualPrice(item);
             }
         }
     }
     
 
     XmlNodeList accruedInterestPriceNodeList = xmlNode.SelectNodes("accruedInterestPrice");
     if (accruedInterestPriceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in accruedInterestPriceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 accruedInterestPriceIDRef = item.Attributes["id"].Name;
                 XsdTypeDecimal ob = XsdTypeDecimal();
                 IDManager.SetID(accruedInterestPriceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 accruedInterestPriceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 accruedInterestPrice = new XsdTypeDecimal(item);
             }
         }
     }
     
 
     XmlNodeList fxConversionNodeList = xmlNode.SelectNodes("fxConversion");
     if (fxConversionNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in fxConversionNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 fxConversionIDRef = item.Attributes["id"].Name;
                 FxConversion ob = FxConversion();
                 IDManager.SetID(fxConversionIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 fxConversionIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 fxConversion = new FxConversion(item);
             }
         }
     }
     
 
     XmlNodeList amountRelativeToNodeList = xmlNode.SelectNodes("amountRelativeTo");
     if (amountRelativeToNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in amountRelativeToNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 amountRelativeToIDRef = item.Attributes["id"].Name;
                 AmountReference ob = AmountReference();
                 IDManager.SetID(amountRelativeToIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 amountRelativeToIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 amountRelativeTo = new AmountReference(item);
             }
         }
     }
     
 
     XmlNodeList cleanNetPriceNodeList = xmlNode.SelectNodes("cleanNetPrice");
     if (cleanNetPriceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in cleanNetPriceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 cleanNetPriceIDRef = item.Attributes["id"].Name;
                 XsdTypeDecimal ob = XsdTypeDecimal();
                 IDManager.SetID(cleanNetPriceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 cleanNetPriceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 cleanNetPrice = new XsdTypeDecimal(item);
             }
         }
     }
     
 
     XmlNodeList quotationCharacteristicsNodeList = xmlNode.SelectNodes("quotationCharacteristics");
     if (quotationCharacteristicsNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in quotationCharacteristicsNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 quotationCharacteristicsIDRef = item.Attributes["id"].Name;
                 QuotationCharacteristics ob = QuotationCharacteristics();
                 IDManager.SetID(quotationCharacteristicsIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 quotationCharacteristicsIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 quotationCharacteristics = new QuotationCharacteristics(item);
             }
         }
     }
     
 
 }
Exemple #4
0
        public Price(XmlNode xmlNode)
        {
            XmlNodeList commissionNodeList = xmlNode.SelectNodes("commission");

            if (commissionNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in commissionNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        commissionIDRef = item.Attributes["id"].Name;
                        Commission ob = Commission();
                        IDManager.SetID(commissionIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        commissionIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        commission = new Commission(item);
                    }
                }
            }


            XmlNodeList determinationMethodNodeList = xmlNode.SelectNodes("determinationMethod");

            if (determinationMethodNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in determinationMethodNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        determinationMethodIDRef = item.Attributes["id"].Name;
                        DeterminationMethod ob = DeterminationMethod();
                        IDManager.SetID(determinationMethodIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        determinationMethodIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        determinationMethod = new DeterminationMethod(item);
                    }
                }
            }


            XmlNodeList grossPriceNodeList = xmlNode.SelectNodes("grossPrice");

            if (grossPriceNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in grossPriceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        grossPriceIDRef = item.Attributes["id"].Name;
                        ActualPrice ob = ActualPrice();
                        IDManager.SetID(grossPriceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        grossPriceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        grossPrice = new ActualPrice(item);
                    }
                }
            }


            XmlNodeList netPriceNodeList = xmlNode.SelectNodes("netPrice");

            if (netPriceNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in netPriceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        netPriceIDRef = item.Attributes["id"].Name;
                        ActualPrice ob = ActualPrice();
                        IDManager.SetID(netPriceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        netPriceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        netPrice = new ActualPrice(item);
                    }
                }
            }


            XmlNodeList accruedInterestPriceNodeList = xmlNode.SelectNodes("accruedInterestPrice");

            if (accruedInterestPriceNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in accruedInterestPriceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        accruedInterestPriceIDRef = item.Attributes["id"].Name;
                        XsdTypeDecimal ob = XsdTypeDecimal();
                        IDManager.SetID(accruedInterestPriceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        accruedInterestPriceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        accruedInterestPrice = new XsdTypeDecimal(item);
                    }
                }
            }


            XmlNodeList fxConversionNodeList = xmlNode.SelectNodes("fxConversion");

            if (fxConversionNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in fxConversionNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        fxConversionIDRef = item.Attributes["id"].Name;
                        FxConversion ob = FxConversion();
                        IDManager.SetID(fxConversionIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        fxConversionIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        fxConversion = new FxConversion(item);
                    }
                }
            }


            XmlNodeList amountRelativeToNodeList = xmlNode.SelectNodes("amountRelativeTo");

            if (amountRelativeToNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in amountRelativeToNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        amountRelativeToIDRef = item.Attributes["id"].Name;
                        AmountReference ob = AmountReference();
                        IDManager.SetID(amountRelativeToIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        amountRelativeToIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        amountRelativeTo = new AmountReference(item);
                    }
                }
            }


            XmlNodeList cleanNetPriceNodeList = xmlNode.SelectNodes("cleanNetPrice");

            if (cleanNetPriceNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in cleanNetPriceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        cleanNetPriceIDRef = item.Attributes["id"].Name;
                        XsdTypeDecimal ob = XsdTypeDecimal();
                        IDManager.SetID(cleanNetPriceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        cleanNetPriceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        cleanNetPrice = new XsdTypeDecimal(item);
                    }
                }
            }


            XmlNodeList quotationCharacteristicsNodeList = xmlNode.SelectNodes("quotationCharacteristics");

            if (quotationCharacteristicsNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in quotationCharacteristicsNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        quotationCharacteristicsIDRef = item.Attributes["id"].Name;
                        QuotationCharacteristics ob = QuotationCharacteristics();
                        IDManager.SetID(quotationCharacteristicsIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        quotationCharacteristicsIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        quotationCharacteristics = new QuotationCharacteristics(item);
                    }
                }
            }
        }