in reply to Re^5: Couldn't create file parser context for file "somename.xml"
in thread Couldn’t create file parser context for file "somename.xml"

Hi, Thanks!!! I added the "map.." part and it worked. But what was wrong with my code? you are telling that I am telling XML::Parser to open
/cygdrive/D/Perl-Implementaion/ParseXML/bb.xml
and
/cygdrive/D/Perl-Implementaion/ParseXML/bbCopy.xml
But I pass the address of the directory in which the files are located as a parameter to my script:
perl parseXML.pl "D:\Perl-Implementaion\ParseXML\test"
So what is wrong in this??

Replies are listed 'Best First'.
Re^7: Couldn't create file parser context for file "somename.xml"
by ikegami (Patriarch) on Jan 01, 2010 at 11:22 UTC
    Yes but you don't pass the name of that directory to XML::LibXML.