title: Get a special type of child in an xml document with PHP
body: <p>I'm looking for a way to get a special type of child out of a xml file with php.
  the xml:</p>
  
  <pre><code>&lt;notify type="post" name="Max" /&gt; 
  </code></pre>
  
  <p>I want to grab the name out of there.
  My code: `$sender =</p>
  
  <pre><code>    $sender = $node-&gt;getChild('notify');
      $sender = $sender-&gt;getChild('name');
      $sender = $sender-&gt;getData();
  </code></pre>
  
  <p>but as i expected it isn't working that way.
  Thanks in advance for any help</p>