public GeneralTerminationEventDetail(XmlNode xmlNode) : base(xmlNode) { XmlNode typeNode = xmlNode.SelectSingleNode("type"); if (typeNode != null) { if (typeNode.Attributes["href"] != null || typeNode.Attributes["id"] != null) { if (typeNode.Attributes["id"] != null) { typeIDRef_ = typeNode.Attributes["id"].Value; XsdTypeToken ob = new XsdTypeToken(typeNode); IDManager.SetID(typeIDRef_, ob); } else if (typeNode.Attributes["href"] != null) { typeIDRef_ = typeNode.Attributes["href"].Value; } else { type_ = new XsdTypeToken(typeNode); } } else { type_ = new XsdTypeToken(typeNode); } } XmlNode general_TerminationEventDetail_creditNode = xmlNode.SelectSingleNode("general_TerminationEventDetail_credit"); if (general_TerminationEventDetail_creditNode != null) { if (general_TerminationEventDetail_creditNode.Attributes["href"] != null || general_TerminationEventDetail_creditNode.Attributes["id"] != null) { if (general_TerminationEventDetail_creditNode.Attributes["id"] != null) { general_TerminationEventDetail_creditIDRef_ = general_TerminationEventDetail_creditNode.Attributes["id"].Value; General_TerminationEventDetail_credit ob = new General_TerminationEventDetail_credit(general_TerminationEventDetail_creditNode); IDManager.SetID(general_TerminationEventDetail_creditIDRef_, ob); } else if (general_TerminationEventDetail_creditNode.Attributes["href"] != null) { general_TerminationEventDetail_creditIDRef_ = general_TerminationEventDetail_creditNode.Attributes["href"].Value; } else { general_TerminationEventDetail_credit_ = new General_TerminationEventDetail_credit(general_TerminationEventDetail_creditNode); } } else { general_TerminationEventDetail_credit_ = new General_TerminationEventDetail_credit(general_TerminationEventDetail_creditNode); } } XmlNode general_TerminationEventDetail_targetNode = xmlNode.SelectSingleNode("general_TerminationEventDetail_target"); if (general_TerminationEventDetail_targetNode != null) { if (general_TerminationEventDetail_targetNode.Attributes["href"] != null || general_TerminationEventDetail_targetNode.Attributes["id"] != null) { if (general_TerminationEventDetail_targetNode.Attributes["id"] != null) { general_TerminationEventDetail_targetIDRef_ = general_TerminationEventDetail_targetNode.Attributes["id"].Value; General_TerminationEventDetail_target ob = new General_TerminationEventDetail_target(general_TerminationEventDetail_targetNode); IDManager.SetID(general_TerminationEventDetail_targetIDRef_, ob); } else if (general_TerminationEventDetail_targetNode.Attributes["href"] != null) { general_TerminationEventDetail_targetIDRef_ = general_TerminationEventDetail_targetNode.Attributes["href"].Value; } else { general_TerminationEventDetail_target_ = new General_TerminationEventDetail_target(general_TerminationEventDetail_targetNode); } } else { general_TerminationEventDetail_target_ = new General_TerminationEventDetail_target(general_TerminationEventDetail_targetNode); } } }