public Restructuring(XmlNode xmlNode) { XmlNode applicableNode = xmlNode.SelectSingleNode("applicable"); if (applicableNode != null) { if (applicableNode.Attributes["href"] != null || applicableNode.Attributes["id"] != null) { if (applicableNode.Attributes["id"] != null) { applicableIDRef_ = applicableNode.Attributes["id"].Value; XsdTypeBoolean ob = new XsdTypeBoolean(applicableNode); IDManager.SetID(applicableIDRef_, ob); } else if (applicableNode.Attributes["href"] != null) { applicableIDRef_ = applicableNode.Attributes["href"].Value; } else { applicable_ = new XsdTypeBoolean(applicableNode); } } else { applicable_ = new XsdTypeBoolean(applicableNode); } } XmlNode restructuringTypeNode = xmlNode.SelectSingleNode("restructuringType"); if (restructuringTypeNode != null) { if (restructuringTypeNode.Attributes["href"] != null || restructuringTypeNode.Attributes["id"] != null) { if (restructuringTypeNode.Attributes["id"] != null) { restructuringTypeIDRef_ = restructuringTypeNode.Attributes["id"].Value; RestructuringType ob = new RestructuringType(restructuringTypeNode); IDManager.SetID(restructuringTypeIDRef_, ob); } else if (restructuringTypeNode.Attributes["href"] != null) { restructuringTypeIDRef_ = restructuringTypeNode.Attributes["href"].Value; } else { restructuringType_ = new RestructuringType(restructuringTypeNode); } } else { restructuringType_ = new RestructuringType(restructuringTypeNode); } } XmlNode multipleHolderObligationNode = xmlNode.SelectSingleNode("multipleHolderObligation"); if (multipleHolderObligationNode != null) { if (multipleHolderObligationNode.Attributes["href"] != null || multipleHolderObligationNode.Attributes["id"] != null) { if (multipleHolderObligationNode.Attributes["id"] != null) { multipleHolderObligationIDRef_ = multipleHolderObligationNode.Attributes["id"].Value; XsdTypeBoolean ob = new XsdTypeBoolean(multipleHolderObligationNode); IDManager.SetID(multipleHolderObligationIDRef_, ob); } else if (multipleHolderObligationNode.Attributes["href"] != null) { multipleHolderObligationIDRef_ = multipleHolderObligationNode.Attributes["href"].Value; } else { multipleHolderObligation_ = new XsdTypeBoolean(multipleHolderObligationNode); } } else { multipleHolderObligation_ = new XsdTypeBoolean(multipleHolderObligationNode); } } XmlNode multipleCreditEventNoticesNode = xmlNode.SelectSingleNode("multipleCreditEventNotices"); if (multipleCreditEventNoticesNode != null) { if (multipleCreditEventNoticesNode.Attributes["href"] != null || multipleCreditEventNoticesNode.Attributes["id"] != null) { if (multipleCreditEventNoticesNode.Attributes["id"] != null) { multipleCreditEventNoticesIDRef_ = multipleCreditEventNoticesNode.Attributes["id"].Value; XsdTypeBoolean ob = new XsdTypeBoolean(multipleCreditEventNoticesNode); IDManager.SetID(multipleCreditEventNoticesIDRef_, ob); } else if (multipleCreditEventNoticesNode.Attributes["href"] != null) { multipleCreditEventNoticesIDRef_ = multipleCreditEventNoticesNode.Attributes["href"].Value; } else { multipleCreditEventNotices_ = new XsdTypeBoolean(multipleCreditEventNoticesNode); } } else { multipleCreditEventNotices_ = new XsdTypeBoolean(multipleCreditEventNoticesNode); } } }
public Restructuring(XmlNode xmlNode) { XmlNodeList applicableNodeList = xmlNode.SelectNodes("applicable"); if (applicableNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in applicableNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { applicableIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(applicableIDRef, ob); } else if (item.Attributes.ToString() == "href") { applicableIDRef = item.Attributes["href"].Name; } else { applicable = new XsdTypeBoolean(item); } } } XmlNodeList restructuringTypeNodeList = xmlNode.SelectNodes("restructuringType"); if (restructuringTypeNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in restructuringTypeNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { restructuringTypeIDRef = item.Attributes["id"].Name; RestructuringType ob = RestructuringType(); IDManager.SetID(restructuringTypeIDRef, ob); } else if (item.Attributes.ToString() == "href") { restructuringTypeIDRef = item.Attributes["href"].Name; } else { restructuringType = new RestructuringType(item); } } } XmlNodeList multipleHolderObligationNodeList = xmlNode.SelectNodes("multipleHolderObligation"); if (multipleHolderObligationNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in multipleHolderObligationNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { multipleHolderObligationIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(multipleHolderObligationIDRef, ob); } else if (item.Attributes.ToString() == "href") { multipleHolderObligationIDRef = item.Attributes["href"].Name; } else { multipleHolderObligation = new XsdTypeBoolean(item); } } } XmlNodeList multipleCreditEventNoticesNodeList = xmlNode.SelectNodes("multipleCreditEventNotices"); if (multipleCreditEventNoticesNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in multipleCreditEventNoticesNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { multipleCreditEventNoticesIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(multipleCreditEventNoticesIDRef, ob); } else if (item.Attributes.ToString() == "href") { multipleCreditEventNoticesIDRef = item.Attributes["href"].Name; } else { multipleCreditEventNotices = new XsdTypeBoolean(item); } } } }
public Restructuring(XmlNode xmlNode) { XmlNodeList applicableNodeList = xmlNode.SelectNodes("applicable"); if (applicableNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in applicableNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { applicableIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(applicableIDRef, ob); } else if (item.Attributes.ToString() == "href") { applicableIDRef = item.Attributes["href"].Name; } else { applicable = new XsdTypeBoolean(item); } } } XmlNodeList restructuringTypeNodeList = xmlNode.SelectNodes("restructuringType"); if (restructuringTypeNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in restructuringTypeNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { restructuringTypeIDRef = item.Attributes["id"].Name; RestructuringType ob = RestructuringType(); IDManager.SetID(restructuringTypeIDRef, ob); } else if (item.Attributes.ToString() == "href") { restructuringTypeIDRef = item.Attributes["href"].Name; } else { restructuringType = new RestructuringType(item); } } } XmlNodeList multipleHolderObligationNodeList = xmlNode.SelectNodes("multipleHolderObligation"); if (multipleHolderObligationNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in multipleHolderObligationNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { multipleHolderObligationIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(multipleHolderObligationIDRef, ob); } else if (item.Attributes.ToString() == "href") { multipleHolderObligationIDRef = item.Attributes["href"].Name; } else { multipleHolderObligation = new XsdTypeBoolean(item); } } } XmlNodeList multipleCreditEventNoticesNodeList = xmlNode.SelectNodes("multipleCreditEventNotices"); if (multipleCreditEventNoticesNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in multipleCreditEventNoticesNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { multipleCreditEventNoticesIDRef = item.Attributes["id"].Name; XsdTypeBoolean ob = XsdTypeBoolean(); IDManager.SetID(multipleCreditEventNoticesIDRef, ob); } else if (item.Attributes.ToString() == "href") { multipleCreditEventNoticesIDRef = item.Attributes["href"].Name; } else { multipleCreditEventNotices = new XsdTypeBoolean(item); } } } }