title: how to find specific xml data by attribute name/value in flex / actionscript
body: <p>From some xml I want to find items that have a specific attribute and value.</p>
  
  <p>Here is example xml:</p>
  
  <pre><code>&lt;node&gt;
   &lt;node&gt;
    &lt;node&gt;
     &lt;special NAME="thisone"&gt;&lt;/special&gt;
    &lt;/node&gt;
    &lt;node&gt;
     &lt;special&gt;dont want this one&lt;/special&gt;
    &lt;/node&gt;
   &lt;/node&gt;
  &lt;/node&gt;
  </code></pre>
  
  <p>(nodes can contain nodes...)</p>
  
  <p>I need to find the first  based on it has an attribute named "NAME" and value of "thisone".</p>
  
  <p>then I need its parent (node).</p>
  
  <p>I tried this:</p>
  
  <p>specialItems = tempXML.*.(hasOwnProperty("NAME"));</p>
  
  <p>but didnt seem to do anything.</p>
  
  <p>??</p>
  
  <p>Thanks!</p>