public void parseXml(XmlElement elem) { m_name = ExportUtil.getXmlAttrStr(elem.Attributes["name"]); XmlNodeList itemNodeList = elem.ChildNodes; XmlElement itemElem; PackItem item; foreach (XmlNode itemNode in itemNodeList) { itemElem = (XmlElement)itemNode; item = new PackItem(); m_packList.Add(item); item.parseXml(itemElem); } }