public ValuationDocument(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNodeList marketNodeList = xmlNode.SelectNodes("market");
     if (marketNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in marketNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 marketIDRef = item.Attributes["id"].Name;
                 Market ob = Market();
                 IDManager.SetID(marketIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 marketIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 market = new Market(item);
             }
         }
     }
     
 
     XmlNodeList valuationSetNodeList = xmlNode.SelectNodes("valuationSet");
     if (valuationSetNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in valuationSetNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 valuationSetIDRef = item.Attributes["id"].Name;
                 ValuationSet ob = ValuationSet();
                 IDManager.SetID(valuationSetIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 valuationSetIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 valuationSet = new ValuationSet(item);
             }
         }
     }
     
 
 }
 public ValuationDocument(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode marketNode = xmlNode.SelectSingleNode("market");
     
     if (marketNode != null)
     {
         if (marketNode.Attributes["href"] != null || marketNode.Attributes["id"] != null) 
         {
             if (marketNode.Attributes["id"] != null) 
             {
                 marketIDRef_ = marketNode.Attributes["id"].Value;
                 Market ob = new Market(marketNode);
                 IDManager.SetID(marketIDRef_, ob);
             }
             else if (marketNode.Attributes["href"] != null)
             {
                 marketIDRef_ = marketNode.Attributes["href"].Value;
             }
             else
             {
                 market_ = new Market(marketNode);
             }
         }
         else
         {
             market_ = new Market(marketNode);
         }
     }
     
 
     XmlNode valuationSetNode = xmlNode.SelectSingleNode("valuationSet");
     
     if (valuationSetNode != null)
     {
         if (valuationSetNode.Attributes["href"] != null || valuationSetNode.Attributes["id"] != null) 
         {
             if (valuationSetNode.Attributes["id"] != null) 
             {
                 valuationSetIDRef_ = valuationSetNode.Attributes["id"].Value;
                 ValuationSet ob = new ValuationSet(valuationSetNode);
                 IDManager.SetID(valuationSetIDRef_, ob);
             }
             else if (valuationSetNode.Attributes["href"] != null)
             {
                 valuationSetIDRef_ = valuationSetNode.Attributes["href"].Value;
             }
             else
             {
                 valuationSet_ = new ValuationSet(valuationSetNode);
             }
         }
         else
         {
             valuationSet_ = new ValuationSet(valuationSetNode);
         }
     }
     
 
 }
        public ValuationDocument(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNodeList marketNodeList = xmlNode.SelectNodes("market");

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

            foreach (XmlNode item in marketNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        marketIDRef = item.Attributes["id"].Name;
                        Market ob = Market();
                        IDManager.SetID(marketIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        marketIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        market = new Market(item);
                    }
                }
            }


            XmlNodeList valuationSetNodeList = xmlNode.SelectNodes("valuationSet");

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

            foreach (XmlNode item in valuationSetNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        valuationSetIDRef = item.Attributes["id"].Name;
                        ValuationSet ob = ValuationSet();
                        IDManager.SetID(valuationSetIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        valuationSetIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        valuationSet = new ValuationSet(item);
                    }
                }
            }
        }
        public ValuationDocument(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode marketNode = xmlNode.SelectSingleNode("market");

            if (marketNode != null)
            {
                if (marketNode.Attributes["href"] != null || marketNode.Attributes["id"] != null)
                {
                    if (marketNode.Attributes["id"] != null)
                    {
                        marketIDRef_ = marketNode.Attributes["id"].Value;
                        Market ob = new Market(marketNode);
                        IDManager.SetID(marketIDRef_, ob);
                    }
                    else if (marketNode.Attributes["href"] != null)
                    {
                        marketIDRef_ = marketNode.Attributes["href"].Value;
                    }
                    else
                    {
                        market_ = new Market(marketNode);
                    }
                }
                else
                {
                    market_ = new Market(marketNode);
                }
            }


            XmlNode valuationSetNode = xmlNode.SelectSingleNode("valuationSet");

            if (valuationSetNode != null)
            {
                if (valuationSetNode.Attributes["href"] != null || valuationSetNode.Attributes["id"] != null)
                {
                    if (valuationSetNode.Attributes["id"] != null)
                    {
                        valuationSetIDRef_ = valuationSetNode.Attributes["id"].Value;
                        ValuationSet ob = new ValuationSet(valuationSetNode);
                        IDManager.SetID(valuationSetIDRef_, ob);
                    }
                    else if (valuationSetNode.Attributes["href"] != null)
                    {
                        valuationSetIDRef_ = valuationSetNode.Attributes["href"].Value;
                    }
                    else
                    {
                        valuationSet_ = new ValuationSet(valuationSetNode);
                    }
                }
                else
                {
                    valuationSet_ = new ValuationSet(valuationSetNode);
                }
            }
        }