in reply to Re^2: How to parse a xml file using XML::DOM??
in thread How to parse a xml file using XML::DOM??

Looking at the documentation of XML::DOM, it shows the use of ->getElementsByTagName. The simplest approach would then be something like:

my $signals = $doc->getElementsByTagName('signal'); my @by_id = grep { my $sigid= $_->getAttributeNode('sigid'); if( $sigid ) { $sigid == 3464 } else { 0 # no sigid attribute, no match } } map { $signals->item($_) } 0..$signals->getLength()-1

I still recommend using an XPath query.