in reply to Re^2: Parsing an XML file with an undefined value
in thread Parsing an XML file with an undefined value

I am a novice to perl and trying to implement this approach in my code. I am using ActivePerl on Windows. 2 questions: 1. I am getting an error stating that "parsefile" is undefined. I have defined the following modules in my code:
use strict; use XML::Twig; use File::Basename; use XML::DOM;
since I use parsefile through Twig for my previous code, would this be the cause of my error? I think it's interfering with calling parsefile through DOM. 2. Would this approach also work if I want to validate attributes instead of tags in an XML file? Thanks

Replies are listed 'Best First'.
Re^4: Parsing an XML file with an undefined value
by Anonymous Monk on Jun 21, 2017 at 19:07 UTC
    copy/paste the error message