Just another Perl shrine | |
PerlMonks |
Re: XML::Parser question.by seattlejohn (Deacon) |
on Nov 04, 2002 at 19:07 UTC ( [id://210252]=note: print w/replies, xml ) | Need Help?? |
You're going to kick yourself ;-)
You want to be calling the parsefile method, not the parse method. parse expects to see a string containing the XML, and of course 'test.xml' is not well-formed XML. (Or you can pass it an open IO::Handle, but not a bare filename.) Also, if you have further problems it can be helpful to use the Style => 'Debug' setting when you instantiate your parser object. $perlmonks{seattlejohn} = 'John Clyman';
In Section
Seekers of Perl Wisdom
|
|