title: How to Parse Nested XML to nested Array?
body: <p>How to pass this xml into array to use in soap function. like </p>
  
  <pre><code>$res=$client-&gt;OTA_HotelDestinationsRQ($myarray);
  
  &lt;OTA_HotelDestinationsRQ Version="1.0"&gt;
        &lt;POS&gt;
          &lt;Source&gt;
               &lt;UniqueId Id="username:password" /&gt;           
          &lt;/Source&gt;
        &lt;/POS&gt;
        &lt;DestinationInformation LanguageCode="EN" /&gt;
  &lt;/OTA_HotelDestinationsRQ&gt;
  </code></pre>