Syntactic Confectionery Delight | |
PerlMonks |
Re: XML parser unable to open fileby afoken (Chancellor) |
on Nov 11, 2020 at 12:08 UTC ( [id://11123583]=note: print w/replies, xml ) | Need Help?? |
I don't see any filename in the code fragment you posted. I guess it is hidden in $ResponseXML. Anyway, try to print out the filename right before calling $parser->parse() to see if your idea of the filename and the filename actually used are the same. If you have no better idea, add
to the top of your script and
right before $parser->parse(). Running your script will give you debug output similar to this:
Note that in my example, I added some common errors: leading space, trailing newline, different directory, different filename. Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|