public static IList <ELongGeoAdapter> GetGeoList() { IList <ELongGeoAdapter> list = new List <ELongGeoAdapter>(); XmlDocument doc = GetDoc(PATH_GEO_CN); XmlNamespaceManager xnm = GetXnmQ1(); XmlNode root = doc.SelectSingleNode("q1:HotelGeoList", xnm); XmlNodeList nodes = root.SelectNodes("q1:HotelGeo", xnm); foreach (XmlNode node in nodes) { ELongGeoAdapter geo = new ELongGeoAdapter(); geo.from(node, xnm, "q1:", ""); list.Add(geo); } return(list); }
public static IList<ELongGeoAdapter> GetGeoList() { IList<ELongGeoAdapter> list = new List<ELongGeoAdapter>(); XmlDocument doc = GetDoc(PATH_GEO_CN); XmlNamespaceManager xnm = GetXnmQ1(); XmlNode root=doc.SelectSingleNode("q1:HotelGeoList",xnm); XmlNodeList nodes = root.SelectNodes("q1:HotelGeo",xnm); foreach (XmlNode node in nodes) { ELongGeoAdapter geo = new ELongGeoAdapter(); geo.from(node, xnm, "q1:", ""); list.Add(geo); } return list; }
public void from(ELongGeoAdapter geo) { this.id = geo.id; this.country = geo.country; this.provinceName = geo.provinceName; this.provinceId = geo.provinceId; this.cityCode = geo.cityCode; this.cityName = geo.cityName; this.properties = ObjectUtil.ParseInt(geo.properties,0); this.url = geo.url; }