日期:2014-05-19  浏览次数:20966 次

我接到一个xml数据。我怎么把他显在网页上
<?xml   version= "1.0 "   encoding= "GB2312 "   ?>  
-   <OTResponse>
-   <ErrorInfo>
    <Code> 20000 </Code>  
    <Description> 查询酒店成功 </Description>  
    </ErrorInfo>
    <TransactionName> SimpleHotelSearch </TransactionName>  
-   <Data>
-   <SimpleHotelsInfo>
    <HotelNumber> 177 </HotelNumber>  
-   <HotelList>
-   <PropertyLineItem>
    <PropertyID> 1E2UQ </PropertyID>  
    <Address> 上海   徐汇区   漕溪北路1200号 </Address>  
    <Promotion> 0A3 </Promotion>  
    <CityCode> SHA </CityCode>  
    <Rank> 5 </Rank>  
    <Name> 华亭宾馆 </Name>  
    <TEL> 021-64396000 </TEL>  
    <FAX   />  
    </PropertyLineItem>
+   <PropertyLineItem>
    <PropertyID> 1E2Q9 </PropertyID>  
    <Address> 上海   闸北区   中山北路1009号 </Address>  
    <Promotion> 0B2 </Promotion>  
    <CityCode> SHA </CityCode>  
    <Rank> 3 </Rank>  
    <Name> 宝隆居家旅店(中山店) </Name>  
    <TEL> 021-56095511 </TEL>  
    <FAX   />  
    </PropertyLineItem>
+   <PropertyLineItem>
    <PropertyID> 1E2QK </PropertyID>  
    <Address> 上海   黄浦区   延安东路7号(近外滩) </Address>  
    <Promotion> 0B3 </Promotion>  
    <CityCode> SHA </CityCode>  
    <Rank> 3A </Rank>  
    <Name> 上海嘉娜宾馆 </Name>  
    <TEL> 021-63300022 </TEL>  
    <FAX   />  
    </PropertyLineItem>
+   <PropertyLineItem>
    <PropertyID> 1E4MY </PropertyID>  
    <Address> 黄浦区滇池路81-85号 </Address>  
    <Promotion> 0B4 </Promotion>  
    <CityCode> SHA </CityCode>  
    <Rank> 4A </Rank>  
    <Name> 上海曼哈顿外滩商务酒店 </Name>  
    <TEL> 021-68888123 </TEL>  
    <FAX   />  
    </PropertyLineItem>
+   <PropertyLineItem>
    <PropertyID> 1E2O0 </PropertyID>  
    <Address> 上海   黄浦区   延安东路128弄8号 </Address>  
    <Promotion> 0B5 </Promotion>  
    <CityCode> SHA </CityCode>  
    <Rank> 3A </Rank>  
    <Name> 创业大酒店 </Name>  
    <TEL> 021-63235188 </TEL>  
    <FAX   />  
    </Pro