how to find specific XML data by attribute name/value in flash AS2?
Posted
by
CCrawler
on Stack Overflow
See other posts from Stack Overflow
or by CCrawler
Published on 2012-03-31T17:35:17Z
Indexed on
2012/03/31
23:28 UTC
Read the original article
Hit count: 167
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)?
© Stack Overflow or respective owner