title: Parse XML received from a GET request
body: <p>As a part of a school project, i am making a call of the school's api.</p>
  
  <p>Method:  GET
  Response Format: Xml</p>
  
  <p>Now i use curl to make the web request.</p>
  
  <pre><code>$ch=curl_init();
  curl_setopt($ch,CURLOPT_URL,$url);
  
  curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  
  $data=curl_exec($ch);
  
  curl_close($ch);
  </code></pre>
  
  <p>Now how do i parse the xml output to get the data i want?</p>
  
  <p>Hope the question is clear </p>