小弟我想提取hotel内容之前的xml片段,请教怎样才能够实现
我想提取hotel内容之前的xml片段,请问怎样才能够实现?
<?xml version= "1.0 " ?>
- <soap:Envelope xmlns:soap= "http://schemas.xmlsoap.org/soap/envelope/ " xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance " xmlns:xsd= "http://www.w3.org/2001/XMLSchema ">
- <soap:Body>
- <SearchHotelsResponse xmlns= "http://tourico.com/webservices/ ">
- <SearchHotelsResult>
- <xs:schema id= "TWS_HotelList " targetNamespace= "http://tourico.com/webservices/TWS_HotelList.xsd " xmlns:mstns= "http://tourico.com/webservices/TWS_HotelList.xsd " xmlns= "http://tourico.com/webservices/TWS_HotelList.xsd " xmlns:xs= "http://www.w3.org/2001/XMLSchema " xmlns:msdata= "urn:schemas-microsoft-com:xml-msdata " attributeFormDefault= "qualified " elementFormDefault= "qualified ">
+ <xs:element name= "TWS_HotelList " msdata:IsDataSet= "true ">
- <xs:complexType>
- <xs:choice maxOccurs= "unbounded ">
- <xs:element name= "Hotel ">
- <xs:complexType>
- <xs:sequence>
- <xs:element name= "RoomType " minOccurs= "0 " maxOccurs= "unbounded ">
- <xs:complexType>
- <xs:sequence>
- <xs:element name= "Avail " minOccurs= "0 " maxOccurs= "unbounded ">
- <xs:complexType>
<xs:attribute name= "offset " form= "unqualified " type= "xs:byte " use= "required " />
<xs:attribute name= "status " form= "unqualified " type= "xs:boolean " use= "required " />
</xs:complexType>
</xs:element>
- <xs:element name= "Discount " minOccurs= "0 " maxOccurs= "unbounded ">
- <xs:complexType>
<xs:attribute name= "from " form= "unqualified " type= "xs:dateTime " use= "required " />
<xs:attribute name= "to " form= "unqualified " type= "xs:dateTime " use= "required " />
<xs:attribute name= "pay " form= "unqualified " type= "xs:int " use= "required " />
<xs:attribute name= "stay " form= "unqualified " type= "xs:int " use= "required " />
</xs:complexType>
</xs:element>
- <xs:element name= "Occup " minOccurs= "0 " maxOccurs= "unbounded ">
- <xs:complexType>
- <xs:sequence>
- <xs:element name= "Supp " minOccurs= "0 " maxOccurs= "unbounded ">
- <xs:complexType>
<xs:attribute name= "supId " form= "unqualified " type= "xs:int " />
<xs:attribute name= "name " form= "unqualified " type= "xs:string " use= "required " />
<?xml version= "1.0 " ?>
- <soap:Envelope xmlns:soap= "http://schemas.xmlsoap.org/soap/envelope/ " xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance " xmlns:xsd= "http://www.w3.org/2001/XMLSchema ">
- <soap:Body>
- <SearchHotelsResponse xmlns= "http://tourico.com/webservices/ ">
- <SearchHotelsResult>
- <xs:schema id= "TWS_HotelList " targetNamespace= "http://tourico.com/webservices/TWS_HotelList.xsd " xmlns:mstns= "http://tourico.com/webservices/TWS_HotelList.xsd " xmlns= "http://tourico.com/webservices/TWS_HotelList.xsd " xmlns:xs= "http://www.w3.org/2001/XMLSchema " xmlns:msdata= "urn:schemas-microsoft-com:xml-msdata " attributeFormDefault= "qualified " elementFormDefault= "qualified ">
+ <xs:element name= "TWS_HotelList " msdata:IsDataSet= "true ">
- <xs:complexType>
- <xs:choice maxOccurs= "unbounded ">
- <xs:element name= "Hotel ">
- <xs:complexType>
- <xs:sequence>
- <xs:element name= "RoomType " minOccurs= "0 " maxOccurs= "unbounded ">
- <xs:complexType>
- <xs:sequence>
- <xs:element name= "Avail " minOccurs= "0 " maxOccurs= "unbounded ">
- <xs:complexType>
<xs:attribute name= "offset " form= "unqualified " type= "xs:byte " use= "required " />
<xs:attribute name= "status " form= "unqualified " type= "xs:boolean " use= "required " />
</xs:complexType>
</xs:element>
- <xs:element name= "Discount " minOccurs= "0 " maxOccurs= "unbounded ">
- <xs:complexType>
<xs:attribute name= "from " form= "unqualified " type= "xs:dateTime " use= "required " />
<xs:attribute name= "to " form= "unqualified " type= "xs:dateTime " use= "required " />
<xs:attribute name= "pay " form= "unqualified " type= "xs:int " use= "required " />
<xs:attribute name= "stay " form= "unqualified " type= "xs:int " use= "required " />
</xs:complexType>
</xs:element>
- <xs:element name= "Occup " minOccurs= "0 " maxOccurs= "unbounded ">
- <xs:complexType>
- <xs:sequence>
- <xs:element name= "Supp " minOccurs= "0 " maxOccurs= "unbounded ">
- <xs:complexType>
<xs:attribute name= "supId " form= "unqualified " type= "xs:int " />
<xs:attribute name= "name " form= "unqualified " type= "xs:string " use= "required " />