in reply to Search pattern from end of line
use XML::Parser;
I guess use XML::Parser; wont be that useful as the pattern before initial > in the pattern >xyz</rpm> varies considerably.
That won't make a bit of difference. XML::Simple is simpler than XML::Parser