I have a following program but for some reason it is throwing an error and not parsing the xml file.
my @findxmls;
foreach my $searchxml(keys %xmlhash) {
@findxmls= `find -name $findxml -maxdepth 4`;
print Dumper (@findxmls);
up to this point works fine. it prints out all the xml files with the path.
example of output
y:\dir\subdir\procedure.xml
y:\dir\otherdir\java.xml
but it does not work if i try to parse it
foreach my $output (@findxmls) {
my $parsexml = new XML::Simple;
my $xmldata = $parser->XMLin($output );
print Dumper ($xmldata);
}
ERROR
File does not exist: y:/dir/subdir/procedure.xml at sample.pl line 20