Connecting Tech Pros Worldwide Forums | Help | Site Map

Please help to read xml using asp

Kosal's Avatar
Member
 
Join Date: Feb 2007
Location: Phnom Penh
Posts: 60
#1: Mar 21 '09
Dear Sir/Madam

Please help me to read xml code as below using asp

thanks
Best Regards

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="utf-8" ?>  
  2. <Service_GetHotelDetail> 
  3.     <GetHotelDetail_Response>   
  4.         <HotelId>WSMA0611001101</HotelId>    
  5.         <HotelName>Landmark Bangkok (The)</HotelName>    
  6.         <Rating>4.00</Rating>    
  7.         <HotelRooms>414</HotelRooms>    
  8.         <Address1>138 Sukhumvit Road</Address1>   
  9.         <Address2/>    
  10.         <Address3/>    
  11.         <Continent>Asia</Continent>    
  12.         <Region>South East Asia</Region>    
  13.         <Location>Sukhumvit Road</Location>    
  14.         <Telephone>66 (0) 2254 0404</Telephone>    
  15.         <Facsimile>66 (0) 2253 4259</Facsimile>    
  16.         <Email>rsvn@landmark.com</Email>    
  17.         <Website>www.landmark.com</Website>    
  18.         <Description>At The Landmark, we have a choice of accommodation to suit your style and personality. From beautifully furnished superior rooms and newly created Deluxe Suites to the Superior rooms of our exclusive Landmark club, complete with its private lounge and Boardroom. All of our guestrooms and Suites now offer broadband internet access.</Description>    
  19.         <Images path="http://www.travflex.com/ImageData/Hotel/landmark_bangkok_the-logo.jpg?d668428fbde8e04d7901ef8032153ceb"/>    
  20.         <Images path="http://www.travflex.com/ImageData/Hotel/landmark_bangkok_the-facility1.gif?b1102eadeb4d8676bdb36970aa226fac"/>    
  21.         <Images path="http://www.travflex.com/ImageData/Hotel/landmark_bangkok_the-overview1.jpg?a438721d749c5e307153fd3369783200"/>   
  22.         <Images path="http://www.travflex.com/ImageData/Hotel/landmark_bangkok_the-room1.jpg?7c347b048e77a293be06a1bfa6940d64"/>   
  23.         <Images path="http://www.travflex.com/ImageData/Hotel/landmark_bangkok_the-general1.jpg?fdd41847871839a95c28f63696fd03af" />       
  24.         <Facility name="Business Center" />    
  25.         <Facility name="Coffee" />    
  26.         <Facility name="Dining Room" />    
  27.         <Facility name="Exercise" />    
  28.         <Facility name="Fitness Center" />    
  29.         <Facility name="Internet Service" />    
  30.         <Facility name="Meeting Rooms" />    
  31.         <Facility name="Minibar" />    
  32.         <Facility name="Non Smoking Room" />    
  33.         <Facility name="Teacoffee" />     
  34.     </GetHotelDetail_Response>   
  35. </Service_GetHotelDetail>

Moderator
 
Join Date: Mar 2006
Posts: 1,103
#2: Mar 23 '09

re: Please help to read xml using asp


This is a really general question. How do you want to read it? As text? Do attributes matter? Do you want a big document structure, or can you read it as it comes?

http://www.stardeveloper.com/article...0072801&page=1
Reply