in reply to XML Transaction - random access.
use strict; use XML::XPath; my $xp = XML::XPath->new(filename => "xmlexample.xml"); my $oldemail= $xp->findvalue('/transactionUpdate/transaction/customerE +mails'); $oldemail =~ s/\s//g; # Get rid of whitespace print $oldemail,"\n";
Thanks to mirod for providing XML::XPath lessons in the ChatterBox!
It should work perfectly the first time! - toma
|
|---|