title: parsing xml with PHP simplexml_load_string
body: <p>so i have this XML: the result of <code>var_dump</code></p>
  
  <pre><code>string '
  &lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;data&gt;
  &lt;entry key="message Type"&gt;
  &lt;![
      CDATA[
          urgent
      ]
  ]&gt;&lt;/entry&gt;&lt;entry key="message Title"&gt;&lt;![
      CDATA[
          teswt
      ]
  ]&gt;&lt;/entry&gt;&lt;entry key="message Body"&gt;&lt;![
      CDATA[
          teasd
      ]
  ]&gt;&lt;/entry&gt;&lt;entry key="message Priority"&gt;&lt;![
      CDATA[
          1
      ]
  ]&gt;&lt;/entry&gt;&lt;/data&gt;
  ' (length=260)
  </code></pre>
  
  <p>my code looks like this:</p>
  
  <pre><code>$xml = simplexml_load_string($tablerow['data']);
  $inputs = $xml-&gt;xpath("/schema/user_input[@type!='hidden']/input|/schema/input");
  foreach($inputs as $cur_input) {
  
          $cur_input_name = (string)$cur_input['name'];
          $cur_input_value = $task_input_values[$cur_input_name];
          $input_name = isset($cur_input['label']) ? (string)$cur_input['label'] : $cur_input['name'];
  }
          var_dump($tablerow['data']);
  </code></pre>
  
  <p><code>$tablerow['data']</code> is the XML from the DB. any help how to get the <code>message Title</code> value from this??</p>
  
  <p>Thanks!</p>