title: PHP SimpleXML Error Message
body: <pre><code>Warning:  main() [function.main]: Node no longer exists
  </code></pre>
  
  <p>I am loading a ml file via <code>simplexml_load_file</code>, it sometimes has values for an attribute and sometimes does not.  </p>
  
  <p>Usage:</p>
  
  <pre><code>$value = $xml-&gt;Name-&gt;arttributes();
  
  Echo $value; 
  </code></pre>
  
  <p>how do I error check to see if there is a value without getting a warning. </p>
  
  <p>Thanks</p>