in reply to Re: XML::Twig error handling
in thread XML::Twig error handling

Hi thanks for pointing me to the documentation!
I used the safe_parsefile function. Even then the program dies after executing that call. It is not moving forward to the next line where I check the error.

Replies are listed 'Best First'.
Re^3:XML::Twig error handling
by ramya2005 (Scribe) on Sep 20, 2005 at 00:24 UTC
    safe_parsefile is works fine if there is no specified file or directory.
    $tree -> safe_parsefile('c:/temp.xml'); warn $@ if $@;
    Is there a way to handle to the 'no such attribute' or 'no such tag' errors in the TWIG HANDLER?