public CorrelationAmount(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode correlationNode = xmlNode.SelectSingleNode("correlation");
     
     if (correlationNode != null)
     {
         if (correlationNode.Attributes["href"] != null || correlationNode.Attributes["id"] != null) 
         {
             if (correlationNode.Attributes["id"] != null) 
             {
                 correlationIDRef_ = correlationNode.Attributes["id"].Value;
                 Correlation ob = new Correlation(correlationNode);
                 IDManager.SetID(correlationIDRef_, ob);
             }
             else if (correlationNode.Attributes["href"] != null)
             {
                 correlationIDRef_ = correlationNode.Attributes["href"].Value;
             }
             else
             {
                 correlation_ = new Correlation(correlationNode);
             }
         }
         else
         {
             correlation_ = new Correlation(correlationNode);
         }
     }
     
 
 }
 public CorrelationAmount(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNodeList correlationNodeList = xmlNode.SelectNodes("correlation");
     if (correlationNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in correlationNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 correlationIDRef = item.Attributes["id"].Name;
                 Correlation ob = Correlation();
                 IDManager.SetID(correlationIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 correlationIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 correlation = new Correlation(item);
             }
         }
     }
     
 
 }