in reply to Reading/Parsing an XML file using Perl
use strict; use warnings; use XML::Simple; my $path = '.'; # add your path here for my $xfile (glob "$path/*.xml") { print "xfile=$xfile\n"; my $xml = XML::Simple->new(); my $file = $xml->XMLin($xfile) or die $!; # do your checks... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reading/Parsing an XML file using Perl
by manu_06 (Novice) on Sep 17, 2010 at 00:45 UTC | |
by rowdog (Curate) on Sep 18, 2010 at 09:11 UTC |