yesitsjess has asked for the wisdom of the Perl Monks concerning the following question:

<?xml version="1.0" encoding="UTF-8"?> <somerubbish> <data1 type="INTEREST1" somerubbish> <groups> <group>INTEREST2</group> </groups> <targets> <target position="1" partner="INTEREST3"> <known-action>INTEREST4</known-action> </target> </targets> </data1> <data2 ....(etc)

How can I capture INTEREST1,2,3&4? I have been trying for a while now, read several help pages, and starting to feel it would be far easier just to use regexes. Can anyone help please?