What is the Flex/AS3/E4X equivalent of this xpath query?

Posted by Chris R on Stack Overflow See other posts from Stack Overflow or by Chris R
Published on 2010-01-14T23:28:39Z Indexed on 2010/05/02 3:37 UTC
Read the original article Hit count: 302

Filed under:
|
|
|
|

Given this document:

<doc>
    <element>
        <list>
            <key attr='val'/>
        </list>
    </element>
    <element>
        <list>
            <key attr='other'/>
        </list>
    </element>
    <element>
        <list/>
    </element>
</doc>

I want an e4x equivalent of the xpath //element[list/key/@attr="val"]. Is it possible to do that?

© Stack Overflow or respective owner

Related posts about flex

Related posts about actionscript-3