public PortfolioReferenceBase(XmlNode xmlNode)
        {
            XmlNodeList portfolioNameNodeList = xmlNode.SelectNodes("portfolioName");

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

            foreach (XmlNode item in portfolioNameNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        portfolioNameIDRef = item.Attributes["id"].Name;
                        PortfolioName ob = PortfolioName();
                        IDManager.SetID(portfolioNameIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        portfolioNameIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        portfolioName = new PortfolioName(item);
                    }
                }
            }
        }
        public PortfolioReferenceBase(XmlNode xmlNode)
        {
            XmlNode portfolioNameNode = xmlNode.SelectSingleNode("portfolioName");

            if (portfolioNameNode != null)
            {
                if (portfolioNameNode.Attributes["href"] != null || portfolioNameNode.Attributes["id"] != null)
                {
                    if (portfolioNameNode.Attributes["id"] != null)
                    {
                        portfolioNameIDRef_ = portfolioNameNode.Attributes["id"].Value;
                        PortfolioName ob = new PortfolioName(portfolioNameNode);
                        IDManager.SetID(portfolioNameIDRef_, ob);
                    }
                    else if (portfolioNameNode.Attributes["href"] != null)
                    {
                        portfolioNameIDRef_ = portfolioNameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        portfolioName_ = new PortfolioName(portfolioNameNode);
                    }
                }
                else
                {
                    portfolioName_ = new PortfolioName(portfolioNameNode);
                }
            }
        }
 public PortfolioReferenceBase(XmlNode xmlNode)
 {
     XmlNode portfolioNameNode = xmlNode.SelectSingleNode("portfolioName");
     
     if (portfolioNameNode != null)
     {
         if (portfolioNameNode.Attributes["href"] != null || portfolioNameNode.Attributes["id"] != null) 
         {
             if (portfolioNameNode.Attributes["id"] != null) 
             {
                 portfolioNameIDRef_ = portfolioNameNode.Attributes["id"].Value;
                 PortfolioName ob = new PortfolioName(portfolioNameNode);
                 IDManager.SetID(portfolioNameIDRef_, ob);
             }
             else if (portfolioNameNode.Attributes["href"] != null)
             {
                 portfolioNameIDRef_ = portfolioNameNode.Attributes["href"].Value;
             }
             else
             {
                 portfolioName_ = new PortfolioName(portfolioNameNode);
             }
         }
         else
         {
             portfolioName_ = new PortfolioName(portfolioNameNode);
         }
     }
     
 
 }
 public PortfolioReferenceBase(XmlNode xmlNode)
 {
     XmlNodeList portfolioNameNodeList = xmlNode.SelectNodes("portfolioName");
     if (portfolioNameNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in portfolioNameNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 portfolioNameIDRef = item.Attributes["id"].Name;
                 PortfolioName ob = PortfolioName();
                 IDManager.SetID(portfolioNameIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 portfolioNameIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 portfolioName = new PortfolioName(item);
             }
         }
     }
     
 
 }