How to pass this xml into array to use in soap function. like
$res=$client->OTA_HotelDestinationsRQ($myarray);
<OTA_HotelDestinationsRQ Version="1.0">
<POS>
<Source>
<UniqueId Id="username:password" />
</Source>
</POS>
<DestinationInformation LanguageCode="EN" />
</OTA_HotelDestinationsRQ>
You can use code like this:
And the result:
Useful documentation links:
DOMNodeDOMDocumentDOMElementDOMNameNodeMapDOMCharacterData