It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming XML Forum

xml problem

xml problem

Postby john_zakaria on Wed Jun 16, 2010 8:40 am

i am using a web service and test it in the web site http://www.soapclient.com/soaptest.html

and it return the result in XML format.

i made my own code in php but my problem is that i get the result in this format

Code: Select all
stdClass Object
(
    [HotelsSearchResult] => stdClass Object
        (
            [any] => <dsHotelSearchReturn xmlns="http://tempuri.org/dsHotelSearchReturn.xsd"><xs:schema xmlns:mstns="http://tempuri.org/dsHotelSearchReturn.xsd" xmlns="http://tempuri.org/dsHotelSearchReturn.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="dsHotelSearchReturn" targetNamespace="http://tempuri.org/dsHotelSearchReturn.xsd" attributeFormDefault="qualified" elementFormDefault="qualified"><xs:element name="dsHotelSearchReturn" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"><xs:complexType><xs:choice minOccurs="0" maxOccurs="unbounded"><xs:element name="Hotels"><xs:complexType><xs:sequence><xs:element name="HotelID" type="xs:int" minOccurs="0"/><xs:element name="RoomTypeID" type="xs:int" minOccurs="0"/><xs:element name="RoomSerial" type="xs:int" minOccurs="0"/><xs:element name="DateFrom" type="xs:dateTime" minOccurs="0"/><xs:element name="DateTo" type="xs:dateTime" minOccurs="0"/><xs:element name="Price" type="xs:decimal" minOccurs="0"/></xs:sequence></xs:complexType></xs:element></xs:choice></xs:complexType></xs:element></xs:schema><Hotels><HotelID>243</HotelID><RoomTypeID>102</RoomTypeID><RoomSerial>2</RoomSerial><DateFrom>2010-06-12T00:00:00+02:00</DateFrom><DateTo>2010-06-13T00:00:00+02:00</DateTo><Price>90.00</Price></Hotels><Hotels><HotelID>7176</HotelID><RoomTypeID>125</RoomTypeID><RoomSerial>1</RoomSerial><DateFrom>2010-06-12T00:00:00+02:00</DateFrom><DateTo>2010-06-13T00:00:00+02:00</DateTo><Price>300.00</Price></Hotels><Hotels><HotelID>7176</HotelID><RoomTypeID>126</RoomTypeID><RoomSerial>2</RoomSerial><DateFrom>2010-06-12T00:00:00+02:00</DateFrom><DateTo>2010-06-13T00:00:00+02:00</DateTo><Price>360.00</Price></Hotels></dsHotelSearchReturn>

        )

)




i want to transform 9it into xml format or to get the results of Hotels Data

Any help
john_zakaria
50+ Club
 
Posts: 59
Joined: Sun Feb 08, 2009 7:29 am

Who is online

Users browsing this forum: No registered users and 0 guests