How to Convert Xml output as String to Key Value pair in PHP
<p>I have this output:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;root&gt;
    &lt;disc&gt;SVD1679354&lt;/disc&gt;
    &lt;cut&gt;18349570&lt;/cut&gt;
    &lt;previewaac&gt;http://api.7digital.com/1.2/track/preview?trackid=18349570&amp;amp;oauth_consumer_key=7dadeprwudk7&amp;amp;country=GB&lt;/previewaac&gt;
    &lt;previewmp3&gt;http://api.7digital.com/1.2/track/preview?trackid=18349570&amp;amp;oauth_consumer_key=7dadeprwudk7&amp;amp;country=GB&lt;/previewmp3&gt;
    &lt;downloadlink&gt;&lt;/downloadlink&gt;
    &lt;codec&gt;&lt;/codec&gt;
  &lt;/root&gt;
</code></pre>

<p>I want this string output to be read in key value pair so that I can directly read a particular key to get its value. </p>

<p>The output is stored in string but the string represents an xml.</p>
