Hi list...

I can't seem to get the right E4X statement.  I'm trying to get an XMLList of 
all the p tags that have an s tag that is a certain string.
I've tried all sorts of combinations, thinking this one would work, but it 
doesn't:
// where animal is passed "dog"
var list:XMLList = XMLList(all..p..(s.toString()==animal).parent());
or even
var list:XMLList = XMLList(all..(s.toString()==animal).parent());

Help! Thanks,
- Michael M.
 
<all>
        <p>
                <s>dog</s>
        </p>
        <p>
                <s>cat</s>
        </p>
        <p>
                <s>bird</s>
        </p>
        <p>
                <s>dog</s>
        </p>
        <p/>
</all>

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to