Problem in parsing XML files
kumar s <[email protected]> Wed, 25 Sep 2002 15:43:24 -0700 (PDT)
| Newsgroups | gmane.comp.python.parser |
|---|---|
| Message-ID | <[email protected]> |
Dear Group,
I am trying to parse some 1200 XML files.
I am using XMLParser.py script.
I wrote a shell script to pass files to this script.
However when I try to execute my shell script I get
the following error:
$ ./format.sh
: bad interpreter: Permission deniedn/python2.1
: bad interpreter: Permission deniedn/python2.1
My script is :
#!/bin/sh
rm entries;
for file in ./home/files/xml/*
do
./XMLParse1.py $file>>entries
./XMLParse2.py $file >>entries
done
I have all my xml files in xml directory.
and my shell script is residing in /home/files/
Can any one please help me out why I am getting this
problem.
when I execute my XMLParse1.py via command line I get
the result.
$ python XMLParse1.py 10245.xml
works for me.
Is there any way I can parse all 1024 XML files.
Please help me.
thanks
PS
__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com