I am parsing an xml file ,before that i have replaced a string in
the original xml file with another and made a new xml file which will
now be parsed.I am also opening some more files for output.The
following code shows some i/o commands.
file_input = raw_input("Enter The ODX File Path:")
input_xml = open(file_input,'r')
saveout = sys.stdout
output_file = open(test_file,"w")
sys.stdout = f_open
After this i have to parse the new xml file which is in
input_xml_sec = open(output_file,'r')
xmldoc = minidom.parse(input_xml_sec)
But i am getting an error on this line
(input_xml_sec = open(output_file,'r')).I have tried to figure out
not able to debug.Can someone throw some light or anything they feel
could be going wrong somewhere.
How do i capture the error as it vanishes very
qucikly when i run through command prompt,(the idle envir gives
indentation errors for no reason(which runs perfectly from cmd
prompt),hence i dont run using conventional F5.