public ValuationDate(XmlNode xmlNode)
 {
     XmlNodeList singleValuationDateNodeList = xmlNode.SelectNodes("singleValuationDate");
     if (singleValuationDateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in singleValuationDateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 singleValuationDateIDRef = item.Attributes["id"].Name;
                 SingleValuationDate ob = SingleValuationDate();
                 IDManager.SetID(singleValuationDateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 singleValuationDateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 singleValuationDate = new SingleValuationDate(item);
             }
         }
     }
     
 
     XmlNodeList multipleValuationDatesNodeList = xmlNode.SelectNodes("multipleValuationDates");
     if (multipleValuationDatesNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in multipleValuationDatesNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 multipleValuationDatesIDRef = item.Attributes["id"].Name;
                 MultipleValuationDates ob = MultipleValuationDates();
                 IDManager.SetID(multipleValuationDatesIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 multipleValuationDatesIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 multipleValuationDates = new MultipleValuationDates(item);
             }
         }
     }
     
 
 }
 public ValuationDate(XmlNode xmlNode)
 {
     XmlNode singleValuationDateNode = xmlNode.SelectSingleNode("singleValuationDate");
     
     if (singleValuationDateNode != null)
     {
         if (singleValuationDateNode.Attributes["href"] != null || singleValuationDateNode.Attributes["id"] != null) 
         {
             if (singleValuationDateNode.Attributes["id"] != null) 
             {
                 singleValuationDateIDRef_ = singleValuationDateNode.Attributes["id"].Value;
                 SingleValuationDate ob = new SingleValuationDate(singleValuationDateNode);
                 IDManager.SetID(singleValuationDateIDRef_, ob);
             }
             else if (singleValuationDateNode.Attributes["href"] != null)
             {
                 singleValuationDateIDRef_ = singleValuationDateNode.Attributes["href"].Value;
             }
             else
             {
                 singleValuationDate_ = new SingleValuationDate(singleValuationDateNode);
             }
         }
         else
         {
             singleValuationDate_ = new SingleValuationDate(singleValuationDateNode);
         }
     }
     
 
     XmlNode multipleValuationDatesNode = xmlNode.SelectSingleNode("multipleValuationDates");
     
     if (multipleValuationDatesNode != null)
     {
         if (multipleValuationDatesNode.Attributes["href"] != null || multipleValuationDatesNode.Attributes["id"] != null) 
         {
             if (multipleValuationDatesNode.Attributes["id"] != null) 
             {
                 multipleValuationDatesIDRef_ = multipleValuationDatesNode.Attributes["id"].Value;
                 MultipleValuationDates ob = new MultipleValuationDates(multipleValuationDatesNode);
                 IDManager.SetID(multipleValuationDatesIDRef_, ob);
             }
             else if (multipleValuationDatesNode.Attributes["href"] != null)
             {
                 multipleValuationDatesIDRef_ = multipleValuationDatesNode.Attributes["href"].Value;
             }
             else
             {
                 multipleValuationDates_ = new MultipleValuationDates(multipleValuationDatesNode);
             }
         }
         else
         {
             multipleValuationDates_ = new MultipleValuationDates(multipleValuationDatesNode);
         }
     }
     
 
 }
        public ValuationDate(XmlNode xmlNode)
        {
            XmlNodeList singleValuationDateNodeList = xmlNode.SelectNodes("singleValuationDate");

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

            foreach (XmlNode item in singleValuationDateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        singleValuationDateIDRef = item.Attributes["id"].Name;
                        SingleValuationDate ob = SingleValuationDate();
                        IDManager.SetID(singleValuationDateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        singleValuationDateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        singleValuationDate = new SingleValuationDate(item);
                    }
                }
            }


            XmlNodeList multipleValuationDatesNodeList = xmlNode.SelectNodes("multipleValuationDates");

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

            foreach (XmlNode item in multipleValuationDatesNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        multipleValuationDatesIDRef = item.Attributes["id"].Name;
                        MultipleValuationDates ob = MultipleValuationDates();
                        IDManager.SetID(multipleValuationDatesIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        multipleValuationDatesIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        multipleValuationDates = new MultipleValuationDates(item);
                    }
                }
            }
        }
Beispiel #4
0
        public ValuationDate(XmlNode xmlNode)
        {
            XmlNode singleValuationDateNode = xmlNode.SelectSingleNode("singleValuationDate");

            if (singleValuationDateNode != null)
            {
                if (singleValuationDateNode.Attributes["href"] != null || singleValuationDateNode.Attributes["id"] != null)
                {
                    if (singleValuationDateNode.Attributes["id"] != null)
                    {
                        singleValuationDateIDRef_ = singleValuationDateNode.Attributes["id"].Value;
                        SingleValuationDate ob = new SingleValuationDate(singleValuationDateNode);
                        IDManager.SetID(singleValuationDateIDRef_, ob);
                    }
                    else if (singleValuationDateNode.Attributes["href"] != null)
                    {
                        singleValuationDateIDRef_ = singleValuationDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        singleValuationDate_ = new SingleValuationDate(singleValuationDateNode);
                    }
                }
                else
                {
                    singleValuationDate_ = new SingleValuationDate(singleValuationDateNode);
                }
            }


            XmlNode multipleValuationDatesNode = xmlNode.SelectSingleNode("multipleValuationDates");

            if (multipleValuationDatesNode != null)
            {
                if (multipleValuationDatesNode.Attributes["href"] != null || multipleValuationDatesNode.Attributes["id"] != null)
                {
                    if (multipleValuationDatesNode.Attributes["id"] != null)
                    {
                        multipleValuationDatesIDRef_ = multipleValuationDatesNode.Attributes["id"].Value;
                        MultipleValuationDates ob = new MultipleValuationDates(multipleValuationDatesNode);
                        IDManager.SetID(multipleValuationDatesIDRef_, ob);
                    }
                    else if (multipleValuationDatesNode.Attributes["href"] != null)
                    {
                        multipleValuationDatesIDRef_ = multipleValuationDatesNode.Attributes["href"].Value;
                    }
                    else
                    {
                        multipleValuationDates_ = new MultipleValuationDates(multipleValuationDatesNode);
                    }
                }
                else
                {
                    multipleValuationDates_ = new MultipleValuationDates(multipleValuationDatesNode);
                }
            }
        }