note
ady
<code>
my $data = do { local( $/ ) ; <$XmlFile> } ; # Slurp file
$data =~ s!(^\s*)?\<(TotalAmount|NoOfRecords|TotalBatch|CurrentBatch|EODTransactionDate|BankFileSeqNo|TotAmount)\>(.+?)\<\/\1\>\n?!!mig; # Zap headers
$data =~ s!(^\s*)?</?.*?>\n?!!mig; # Zap xml tags
CRC32($data); # CRC remaining data
</code>
Should be fast, but in general regex'ing x/html is fragile and NOT recommended.<br>
(implicit assumptions about the data content is one of the traps, -- which may/not apply in your case).<br>
You probably should use XML::Twig instead!<br>
697874
697969