title: What is the Flex/AS3/E4X equivalent of this xpath query?
body: <p>Given this document:</p>
  
  <pre><code>&lt;doc&gt;
      &lt;element&gt;
          &lt;list&gt;
              &lt;key attr='val'/&gt;
          &lt;/list&gt;
      &lt;/element&gt;
      &lt;element&gt;
          &lt;list&gt;
              &lt;key attr='other'/&gt;
          &lt;/list&gt;
      &lt;/element&gt;
      &lt;element&gt;
          &lt;list/&gt;
      &lt;/element&gt;
  &lt;/doc&gt;
  </code></pre>
  
  <p>I want an e4x equivalent of the xpath <code>//element[list/key/@attr="val"]</code>. Is it possible to do that?</p>