in reply to How to parse a xml file using XML::DOM??
#!/usr/bin/perl use warnings; use strict; use feature qw{ say }; use XML::DOM; my $doc = 'XML::DOM::Parser'->new->parsefile(shift); say $_->getAttribute('id') for grep 3464 eq $_->getAttribute('sigid'), $doc->getElementsByTagName('signal');
If your XML file is really huge, you might need to switch to a pull or SAX parser. I'm not sure whether XML::DOM provides such an interface.
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to parse a xml file using XML::DOM??
by robby_dobby (Hermit) on Sep 22, 2016 at 10:25 UTC |