public void Load(XmlElement elem) { XmlElement elemDefault = (XmlElement)elem.GetElementsByTagName("defaultfee")[0]; this.defaultFee.Load(elemDefault); XmlElement elemVariety = (XmlElement)elem.GetElementsByTagName("varietyfee")[0]; XmlNodeList list = elemVariety.ChildNodes; foreach (Object obj in list) { XmlElement subElem = (XmlElement)obj; TradeFee_Code fee_Code = new TradeFee_Code(); fee_Code.Load(subElem); this.AddVarietyFee(fee_Code); } XmlElement elemCode = (XmlElement)elem.GetElementsByTagName("codefee")[0]; list = elemCode.ChildNodes; foreach (Object obj in list) { XmlElement subElem = (XmlElement)obj; TradeFee_Code fee_Code = new TradeFee_Code(); fee_Code.Load(subElem); this.AddCodeFee(fee_Code); } }
public void Load(XmlElement elem) { XmlNodeList list = elem.ChildNodes; foreach (Object obj in list) { XmlElement subElem = (XmlElement)obj; TradeFee_Code fee_Code = new TradeFee_Code(); fee_Code.Load(subElem); mapFee.Add(fee_Code.Code, fee_Code); } }