Ejemplo n.º 1
0
        public static IList <ElongHotelSurroundingAttractionAdapter> GetHotelSurroundingAttractionList(string hotelId)
        {
            IList <ElongHotelSurroundingAttractionAdapter> list = new List <ElongHotelSurroundingAttractionAdapter>();
            string      path = string.Format(PATH_HOTEL_ID_CN, hotelId);
            XmlDocument doc  = GetDoc(path);

            XmlNamespaceManager xnm   = GetXnmQ1();
            XmlNodeList         nodes = doc.SelectNodes("q1:HotelDetail/q1:surroundingAttractions/q1:surroundingAttraction", xnm);

            foreach (XmlNode node in nodes)
            {
                ElongHotelSurroundingAttractionAdapter adapter = new ElongHotelSurroundingAttractionAdapter();
                adapter.from(node, xnm, "q1:", "");
                adapter.exHotelId = hotelId;
                list.Add(adapter);
            }
            return(list);
        }
Ejemplo n.º 2
0
        public static IList<ElongHotelSurroundingAttractionAdapter> GetHotelSurroundingAttractionList(string hotelId)
        {
            IList<ElongHotelSurroundingAttractionAdapter> list = new List<ElongHotelSurroundingAttractionAdapter>();
            string path = string.Format(PATH_HOTEL_ID_CN, hotelId);
            XmlDocument doc = GetDoc(path);

            XmlNamespaceManager xnm = GetXnmQ1();
            XmlNodeList nodes = doc.SelectNodes("q1:HotelDetail/q1:surroundingAttractions/q1:surroundingAttraction", xnm);
            foreach (XmlNode node in nodes)
            {
                ElongHotelSurroundingAttractionAdapter adapter = new ElongHotelSurroundingAttractionAdapter();
                adapter.from(node, xnm, "q1:", "");
                adapter.exHotelId = hotelId;
                list.Add(adapter);
            }
            return list;
        }
Ejemplo n.º 3
0
 public void from(ElongHotelSurroundingAttractionAdapter adapter)
 {
     this.fromBase(adapter);
 }
Ejemplo n.º 4
0
 public void from(ElongHotelSurroundingAttractionAdapter adapter)
 {
     this.fromBase(adapter);
 }