public CommodityInformationSource(XmlNode xmlNode) { XmlNodeList rateSourceNodeList = xmlNode.SelectNodes("rateSource"); if (rateSourceNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in rateSourceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { rateSourceIDRef = item.Attributes["id"].Name; CommodityInformationProvider ob = CommodityInformationProvider(); IDManager.SetID(rateSourceIDRef, ob); } else if (item.Attributes.ToString() == "href") { rateSourceIDRef = item.Attributes["href"].Name; } else { rateSource = new CommodityInformationProvider(item); } } } XmlNodeList rateSourcePageNodeList = xmlNode.SelectNodes("rateSourcePage"); if (rateSourcePageNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in rateSourcePageNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { rateSourcePageIDRef = item.Attributes["id"].Name; RateSourcePage ob = RateSourcePage(); IDManager.SetID(rateSourcePageIDRef, ob); } else if (item.Attributes.ToString() == "href") { rateSourcePageIDRef = item.Attributes["href"].Name; } else { rateSourcePage = new RateSourcePage(item); } } } XmlNodeList rateSourcePageHeadingNodeList = xmlNode.SelectNodes("rateSourcePageHeading"); if (rateSourcePageHeadingNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in rateSourcePageHeadingNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { rateSourcePageHeadingIDRef = item.Attributes["id"].Name; XsdTypeString ob = XsdTypeString(); IDManager.SetID(rateSourcePageHeadingIDRef, ob); } else if (item.Attributes.ToString() == "href") { rateSourcePageHeadingIDRef = item.Attributes["href"].Name; } else { rateSourcePageHeading = new XsdTypeString(item); } } } }
public CommodityInformationSource(XmlNode xmlNode) { XmlNode rateSourceNode = xmlNode.SelectSingleNode("rateSource"); if (rateSourceNode != null) { if (rateSourceNode.Attributes["href"] != null || rateSourceNode.Attributes["id"] != null) { if (rateSourceNode.Attributes["id"] != null) { rateSourceIDRef_ = rateSourceNode.Attributes["id"].Value; CommodityInformationProvider ob = new CommodityInformationProvider(rateSourceNode); IDManager.SetID(rateSourceIDRef_, ob); } else if (rateSourceNode.Attributes["href"] != null) { rateSourceIDRef_ = rateSourceNode.Attributes["href"].Value; } else { rateSource_ = new CommodityInformationProvider(rateSourceNode); } } else { rateSource_ = new CommodityInformationProvider(rateSourceNode); } } XmlNode rateSourcePageNode = xmlNode.SelectSingleNode("rateSourcePage"); if (rateSourcePageNode != null) { if (rateSourcePageNode.Attributes["href"] != null || rateSourcePageNode.Attributes["id"] != null) { if (rateSourcePageNode.Attributes["id"] != null) { rateSourcePageIDRef_ = rateSourcePageNode.Attributes["id"].Value; RateSourcePage ob = new RateSourcePage(rateSourcePageNode); IDManager.SetID(rateSourcePageIDRef_, ob); } else if (rateSourcePageNode.Attributes["href"] != null) { rateSourcePageIDRef_ = rateSourcePageNode.Attributes["href"].Value; } else { rateSourcePage_ = new RateSourcePage(rateSourcePageNode); } } else { rateSourcePage_ = new RateSourcePage(rateSourcePageNode); } } XmlNode rateSourcePageHeadingNode = xmlNode.SelectSingleNode("rateSourcePageHeading"); if (rateSourcePageHeadingNode != null) { if (rateSourcePageHeadingNode.Attributes["href"] != null || rateSourcePageHeadingNode.Attributes["id"] != null) { if (rateSourcePageHeadingNode.Attributes["id"] != null) { rateSourcePageHeadingIDRef_ = rateSourcePageHeadingNode.Attributes["id"].Value; XsdTypeString ob = new XsdTypeString(rateSourcePageHeadingNode); IDManager.SetID(rateSourcePageHeadingIDRef_, ob); } else if (rateSourcePageHeadingNode.Attributes["href"] != null) { rateSourcePageHeadingIDRef_ = rateSourcePageHeadingNode.Attributes["href"].Value; } else { rateSourcePageHeading_ = new XsdTypeString(rateSourcePageHeadingNode); } } else { rateSourcePageHeading_ = new XsdTypeString(rateSourcePageHeadingNode); } } }
public CommodityInformationSource(XmlNode xmlNode) { XmlNodeList rateSourceNodeList = xmlNode.SelectNodes("rateSource"); if (rateSourceNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in rateSourceNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { rateSourceIDRef = item.Attributes["id"].Name; CommodityInformationProvider ob = CommodityInformationProvider(); IDManager.SetID(rateSourceIDRef, ob); } else if (item.Attributes.ToString() == "href") { rateSourceIDRef = item.Attributes["href"].Name; } else { rateSource = new CommodityInformationProvider(item); } } } XmlNodeList rateSourcePageNodeList = xmlNode.SelectNodes("rateSourcePage"); if (rateSourcePageNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in rateSourcePageNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { rateSourcePageIDRef = item.Attributes["id"].Name; RateSourcePage ob = RateSourcePage(); IDManager.SetID(rateSourcePageIDRef, ob); } else if (item.Attributes.ToString() == "href") { rateSourcePageIDRef = item.Attributes["href"].Name; } else { rateSourcePage = new RateSourcePage(item); } } } XmlNodeList rateSourcePageHeadingNodeList = xmlNode.SelectNodes("rateSourcePageHeading"); if (rateSourcePageHeadingNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in rateSourcePageHeadingNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { rateSourcePageHeadingIDRef = item.Attributes["id"].Name; XsdTypeString ob = XsdTypeString(); IDManager.SetID(rateSourcePageHeadingIDRef, ob); } else if (item.Attributes.ToString() == "href") { rateSourcePageHeadingIDRef = item.Attributes["href"].Name; } else { rateSourcePageHeading = new XsdTypeString(item); } } } }
public CommodityInformationSource(XmlNode xmlNode) { XmlNode rateSourceNode = xmlNode.SelectSingleNode("rateSource"); if (rateSourceNode != null) { if (rateSourceNode.Attributes["href"] != null || rateSourceNode.Attributes["id"] != null) { if (rateSourceNode.Attributes["id"] != null) { rateSourceIDRef_ = rateSourceNode.Attributes["id"].Value; CommodityInformationProvider ob = new CommodityInformationProvider(rateSourceNode); IDManager.SetID(rateSourceIDRef_, ob); } else if (rateSourceNode.Attributes["href"] != null) { rateSourceIDRef_ = rateSourceNode.Attributes["href"].Value; } else { rateSource_ = new CommodityInformationProvider(rateSourceNode); } } else { rateSource_ = new CommodityInformationProvider(rateSourceNode); } } XmlNode rateSourcePageNode = xmlNode.SelectSingleNode("rateSourcePage"); if (rateSourcePageNode != null) { if (rateSourcePageNode.Attributes["href"] != null || rateSourcePageNode.Attributes["id"] != null) { if (rateSourcePageNode.Attributes["id"] != null) { rateSourcePageIDRef_ = rateSourcePageNode.Attributes["id"].Value; RateSourcePage ob = new RateSourcePage(rateSourcePageNode); IDManager.SetID(rateSourcePageIDRef_, ob); } else if (rateSourcePageNode.Attributes["href"] != null) { rateSourcePageIDRef_ = rateSourcePageNode.Attributes["href"].Value; } else { rateSourcePage_ = new RateSourcePage(rateSourcePageNode); } } else { rateSourcePage_ = new RateSourcePage(rateSourcePageNode); } } XmlNode rateSourcePageHeadingNode = xmlNode.SelectSingleNode("rateSourcePageHeading"); if (rateSourcePageHeadingNode != null) { if (rateSourcePageHeadingNode.Attributes["href"] != null || rateSourcePageHeadingNode.Attributes["id"] != null) { if (rateSourcePageHeadingNode.Attributes["id"] != null) { rateSourcePageHeadingIDRef_ = rateSourcePageHeadingNode.Attributes["id"].Value; XsdTypeString ob = new XsdTypeString(rateSourcePageHeadingNode); IDManager.SetID(rateSourcePageHeadingIDRef_, ob); } else if (rateSourcePageHeadingNode.Attributes["href"] != null) { rateSourcePageHeadingIDRef_ = rateSourcePageHeadingNode.Attributes["href"].Value; } else { rateSourcePageHeading_ = new XsdTypeString(rateSourcePageHeadingNode); } } else { rateSourcePageHeading_ = new XsdTypeString(rateSourcePageHeadingNode); } } }