public AdjustableDateOrRelativeDateSequence(XmlNode xmlNode) { XmlNode adjustableDateNode = xmlNode.SelectSingleNode("adjustableDate"); if (adjustableDateNode != null) { if (adjustableDateNode.Attributes["href"] != null || adjustableDateNode.Attributes["id"] != null) { if (adjustableDateNode.Attributes["id"] != null) { adjustableDateIDRef_ = adjustableDateNode.Attributes["id"].Value; AdjustableDate ob = new AdjustableDate(adjustableDateNode); IDManager.SetID(adjustableDateIDRef_, ob); } else if (adjustableDateNode.Attributes["href"] != null) { adjustableDateIDRef_ = adjustableDateNode.Attributes["href"].Value; } else { adjustableDate_ = new AdjustableDate(adjustableDateNode); } } else { adjustableDate_ = new AdjustableDate(adjustableDateNode); } } XmlNode relativeDateSequenceNode = xmlNode.SelectSingleNode("relativeDateSequence"); if (relativeDateSequenceNode != null) { if (relativeDateSequenceNode.Attributes["href"] != null || relativeDateSequenceNode.Attributes["id"] != null) { if (relativeDateSequenceNode.Attributes["id"] != null) { relativeDateSequenceIDRef_ = relativeDateSequenceNode.Attributes["id"].Value; RelativeDateSequence ob = new RelativeDateSequence(relativeDateSequenceNode); IDManager.SetID(relativeDateSequenceIDRef_, ob); } else if (relativeDateSequenceNode.Attributes["href"] != null) { relativeDateSequenceIDRef_ = relativeDateSequenceNode.Attributes["href"].Value; } else { relativeDateSequence_ = new RelativeDateSequence(relativeDateSequenceNode); } } else { relativeDateSequence_ = new RelativeDateSequence(relativeDateSequenceNode); } } }
public AdjustableDateOrRelativeDateSequence(XmlNode xmlNode) { XmlNodeList adjustableDateNodeList = xmlNode.SelectNodes("adjustableDate"); if (adjustableDateNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in adjustableDateNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { adjustableDateIDRef = item.Attributes["id"].Name; AdjustableDate ob = AdjustableDate(); IDManager.SetID(adjustableDateIDRef, ob); } else if (item.Attributes.ToString() == "href") { adjustableDateIDRef = item.Attributes["href"].Name; } else { adjustableDate = new AdjustableDate(item); } } } XmlNodeList relativeDateSequenceNodeList = xmlNode.SelectNodes("relativeDateSequence"); if (relativeDateSequenceNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in relativeDateSequenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { relativeDateSequenceIDRef = item.Attributes["id"].Name; RelativeDateSequence ob = RelativeDateSequence(); IDManager.SetID(relativeDateSequenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { relativeDateSequenceIDRef = item.Attributes["href"].Name; } else { relativeDateSequence = new RelativeDateSequence(item); } } } }
public AdjustableDateOrRelativeDateSequence(XmlNode xmlNode) { XmlNodeList adjustableDateNodeList = xmlNode.SelectNodes("adjustableDate"); if (adjustableDateNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in adjustableDateNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { adjustableDateIDRef = item.Attributes["id"].Name; AdjustableDate ob = AdjustableDate(); IDManager.SetID(adjustableDateIDRef, ob); } else if (item.Attributes.ToString() == "href") { adjustableDateIDRef = item.Attributes["href"].Name; } else { adjustableDate = new AdjustableDate(item); } } } XmlNodeList relativeDateSequenceNodeList = xmlNode.SelectNodes("relativeDateSequence"); if (relativeDateSequenceNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in relativeDateSequenceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { relativeDateSequenceIDRef = item.Attributes["id"].Name; RelativeDateSequence ob = RelativeDateSequence(); IDManager.SetID(relativeDateSequenceIDRef, ob); } else if (item.Attributes.ToString() == "href") { relativeDateSequenceIDRef = item.Attributes["href"].Name; } else { relativeDateSequence = new RelativeDateSequence(item); } } } }
public AdjustableRelativeOrPeriodicDates(XmlNode xmlNode) { XmlNode adjustableDatesNode = xmlNode.SelectSingleNode("adjustableDates"); if (adjustableDatesNode != null) { if (adjustableDatesNode.Attributes["href"] != null || adjustableDatesNode.Attributes["id"] != null) { if (adjustableDatesNode.Attributes["id"] != null) { adjustableDatesIDRef_ = adjustableDatesNode.Attributes["id"].Value; AdjustableDates ob = new AdjustableDates(adjustableDatesNode); IDManager.SetID(adjustableDatesIDRef_, ob); } else if (adjustableDatesNode.Attributes["href"] != null) { adjustableDatesIDRef_ = adjustableDatesNode.Attributes["href"].Value; } else { adjustableDates_ = new AdjustableDates(adjustableDatesNode); } } else { adjustableDates_ = new AdjustableDates(adjustableDatesNode); } } XmlNode relativeDateSequenceNode = xmlNode.SelectSingleNode("relativeDateSequence"); if (relativeDateSequenceNode != null) { if (relativeDateSequenceNode.Attributes["href"] != null || relativeDateSequenceNode.Attributes["id"] != null) { if (relativeDateSequenceNode.Attributes["id"] != null) { relativeDateSequenceIDRef_ = relativeDateSequenceNode.Attributes["id"].Value; RelativeDateSequence ob = new RelativeDateSequence(relativeDateSequenceNode); IDManager.SetID(relativeDateSequenceIDRef_, ob); } else if (relativeDateSequenceNode.Attributes["href"] != null) { relativeDateSequenceIDRef_ = relativeDateSequenceNode.Attributes["href"].Value; } else { relativeDateSequence_ = new RelativeDateSequence(relativeDateSequenceNode); } } else { relativeDateSequence_ = new RelativeDateSequence(relativeDateSequenceNode); } } XmlNode periodicDatesNode = xmlNode.SelectSingleNode("periodicDates"); if (periodicDatesNode != null) { if (periodicDatesNode.Attributes["href"] != null || periodicDatesNode.Attributes["id"] != null) { if (periodicDatesNode.Attributes["id"] != null) { periodicDatesIDRef_ = periodicDatesNode.Attributes["id"].Value; PeriodicDates ob = new PeriodicDates(periodicDatesNode); IDManager.SetID(periodicDatesIDRef_, ob); } else if (periodicDatesNode.Attributes["href"] != null) { periodicDatesIDRef_ = periodicDatesNode.Attributes["href"].Value; } else { periodicDates_ = new PeriodicDates(periodicDatesNode); } } else { periodicDates_ = new PeriodicDates(periodicDatesNode); } } }