in reply to Catch XML error
Try wrapping in eval:
my $value; eval { $value = $record1->getAttribute('value1'); }; next FILE if ( $@ );
Note the scope. Define the variable outside the eval, or you'll only be able to use it in the block.
Phil
The Gantry Web Framework Book is now available.
In Section
Seekers of Perl Wisdom