marunk has asked for the wisdom of the Perl Monks concerning the following question:

I am using LibXML 2.0116 with perl 5.10.1 on Redhard 6.4 86_64 architrecture. I am getting this error : Could not create file parser context for file "/tmp/arun/ALU_PERL/testdir/modifi": No such file or directory at FindChangesXML.pl line 215 Is there is possible solution for the same ? Please help. Regards Arun
  • Comment on Could not create file parser context for file ...

Replies are listed 'Best First'.
Re: Could not create file parser context for file ...
by jellisii2 (Hermit) on Sep 25, 2014 at 15:57 UTC
Re: Could not create file parser context for file ...
by graff (Chancellor) on Sep 26, 2014 at 02:21 UTC
    Based on the error message, my first guess about the problem would go like this:

    Why is "/tmp/arun/ALU_PERL/testdir/modifi" being used as a file name? It looks like it has been truncated, and probably should be longer.

    If the file name really is supposed to be "/tmp/arun/ALU_PERL/testdir/modifi", then why does it not exist on the system where this script is being run?

    Line 215 of your script will have the "open()" statement, which is causing the error. Either there's a literal string there ("/tmp/arun/ALU_PERL/testdir/modifi"), or else there's a variable holding that string as its value when that line is reached. In the latter case, there's some other line in your script where that value is being assigned to the variable, and it would be useful to know where that value is coming from. Good luck with that.