public PricingResult(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode cashflowNode = xmlNode.SelectSingleNode("cashflow");

            if (cashflowNode != null)
            {
                if (cashflowNode.Attributes["href"] != null || cashflowNode.Attributes["id"] != null)
                {
                    if (cashflowNode.Attributes["id"] != null)
                    {
                        cashflowIDRef_ = cashflowNode.Attributes["id"].Value;
                        Cashflow ob = new Cashflow(cashflowNode);
                        IDManager.SetID(cashflowIDRef_, ob);
                    }
                    else if (cashflowNode.Attributes["href"] != null)
                    {
                        cashflowIDRef_ = cashflowNode.Attributes["href"].Value;
                    }
                    else
                    {
                        cashflow_ = new Cashflow(cashflowNode);
                    }
                }
                else
                {
                    cashflow_ = new Cashflow(cashflowNode);
                }
            }


            XmlNode priceNode = xmlNode.SelectSingleNode("price");

            if (priceNode != null)
            {
                if (priceNode.Attributes["href"] != null || priceNode.Attributes["id"] != null)
                {
                    if (priceNode.Attributes["id"] != null)
                    {
                        priceIDRef_ = priceNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(priceNode);
                        IDManager.SetID(priceIDRef_, ob);
                    }
                    else if (priceNode.Attributes["href"] != null)
                    {
                        priceIDRef_ = priceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        price_ = new XsdTypeDouble(priceNode);
                    }
                }
                else
                {
                    price_ = new XsdTypeDouble(priceNode);
                }
            }


            XmlNode unitPriceNode = xmlNode.SelectSingleNode("unitPrice");

            if (unitPriceNode != null)
            {
                if (unitPriceNode.Attributes["href"] != null || unitPriceNode.Attributes["id"] != null)
                {
                    if (unitPriceNode.Attributes["id"] != null)
                    {
                        unitPriceIDRef_ = unitPriceNode.Attributes["id"].Value;
                        XsdTypeDouble ob = new XsdTypeDouble(unitPriceNode);
                        IDManager.SetID(unitPriceIDRef_, ob);
                    }
                    else if (unitPriceNode.Attributes["href"] != null)
                    {
                        unitPriceIDRef_ = unitPriceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        unitPrice_ = new XsdTypeDouble(unitPriceNode);
                    }
                }
                else
                {
                    unitPrice_ = new XsdTypeDouble(unitPriceNode);
                }
            }
        }
 public PricingResult(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode cashflowNode = xmlNode.SelectSingleNode("cashflow");
     
     if (cashflowNode != null)
     {
         if (cashflowNode.Attributes["href"] != null || cashflowNode.Attributes["id"] != null) 
         {
             if (cashflowNode.Attributes["id"] != null) 
             {
                 cashflowIDRef_ = cashflowNode.Attributes["id"].Value;
                 Cashflow ob = new Cashflow(cashflowNode);
                 IDManager.SetID(cashflowIDRef_, ob);
             }
             else if (cashflowNode.Attributes["href"] != null)
             {
                 cashflowIDRef_ = cashflowNode.Attributes["href"].Value;
             }
             else
             {
                 cashflow_ = new Cashflow(cashflowNode);
             }
         }
         else
         {
             cashflow_ = new Cashflow(cashflowNode);
         }
     }
     
 
     XmlNode priceNode = xmlNode.SelectSingleNode("price");
     
     if (priceNode != null)
     {
         if (priceNode.Attributes["href"] != null || priceNode.Attributes["id"] != null) 
         {
             if (priceNode.Attributes["id"] != null) 
             {
                 priceIDRef_ = priceNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(priceNode);
                 IDManager.SetID(priceIDRef_, ob);
             }
             else if (priceNode.Attributes["href"] != null)
             {
                 priceIDRef_ = priceNode.Attributes["href"].Value;
             }
             else
             {
                 price_ = new XsdTypeDouble(priceNode);
             }
         }
         else
         {
             price_ = new XsdTypeDouble(priceNode);
         }
     }
     
 
     XmlNode unitPriceNode = xmlNode.SelectSingleNode("unitPrice");
     
     if (unitPriceNode != null)
     {
         if (unitPriceNode.Attributes["href"] != null || unitPriceNode.Attributes["id"] != null) 
         {
             if (unitPriceNode.Attributes["id"] != null) 
             {
                 unitPriceIDRef_ = unitPriceNode.Attributes["id"].Value;
                 XsdTypeDouble ob = new XsdTypeDouble(unitPriceNode);
                 IDManager.SetID(unitPriceIDRef_, ob);
             }
             else if (unitPriceNode.Attributes["href"] != null)
             {
                 unitPriceIDRef_ = unitPriceNode.Attributes["href"].Value;
             }
             else
             {
                 unitPrice_ = new XsdTypeDouble(unitPriceNode);
             }
         }
         else
         {
             unitPrice_ = new XsdTypeDouble(unitPriceNode);
         }
     }
     
 
 }