in reply to Re^3: Couldn't create file parser context for file "somename.xml"
in thread Couldn’t create file parser context for file "somename.xml"
You see both files are there. By the way I do not "ls". To get the files in a directory I have the following in the beginning of my script:$ perl parseXML.pl "D:\Perl-Implementaion\ParseXM L\test" cwd = /cygdrive/D/Perl-Implementaion/ParseXML files: $VAR1 = [ "bb.xml", "bbCopy.xml" ]; bb.xml className= org.argouml.uml.cognitive.critics.CrClassMustBeAbstract methodName= predicate2(Object,Designer) bbCopy.xml Could not create file parser context for file "bbCopy.xml": No such fi +le or dire ctory at parseXML.pl line 37
Thanks for helping me.use XML::LibXML; $ARGV[0] || die; $path=$ARGV[0]; # open the designated directory opendir(DIR, $path); @files = grep(/\.xml$/,readdir(DIR));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Couldn't create file parser context for file "somename.xml"
by ikegami (Patriarch) on Dec 31, 2009 at 20:24 UTC | |
by laleh-poly (Novice) on Dec 31, 2009 at 21:02 UTC | |
by ikegami (Patriarch) on Jan 01, 2010 at 11:22 UTC |