how to find specific XML data by attribute name/value in flash AS2?
- by CCrawler
Given the following XML code:
<set name="thumbsBooks">
<set name="pdf">
<thumb>Data I want to access</thumb>
<thumb>Data I want to access</thumb>
</set>
<set name="printed">
<thumb>Data I don't want to access</thumb>
<thumb>Data I don't want to access</thumb>
</set>
<set>
I want to be able to get the data contained in the "thumb" tags using the "name" attribute value of the parent tag as a selector, something like you would do in jQuery: $('set[name="pdf"]').find('thumb');
Is there a method like this in Action Script 2 (can't use AS3)?