- simplexml_load_string: documentation ( source)
<?php
$xml = "https://api.eancdn.com/ean-services/rs/hotel/v3/info?cid=55505&minorRev=99&apiKey=cbrzfta369qwyrm9t5b8y8kf&locale=in_ID¤cyCode=IDR&xml=%3CHotelInformationRequest%3E%3ChotelId%3E122212%3C%2FhotelId%3E%3Coptions%3E0%3C%2Foptions%3E%3C%2FHotelInformationRequest%3E";
$xml = simplexml_load_string( $xml);
foreach( $xml->xpath( './/child') as $child) {
echo $child->attributes()['name'] . "\n";
}