Nov-11-2018, 02:48 AM
(Nov-09-2018, 02:42 PM)ichabod801 Wrote: Your file location string looks like it might be a problem. The backslashes will generally try to make the next character into a special character. Try one of the following: double all the backslashes (\\), switch to forward slashes (/), or make it a raw string by putting an r before it (r"D:\Training\...").
Otherwise that code is working for me in 2.7.
Hi,
I tried but it shows error as
Error:un(shallow)copyable object of type <type 'element'>
This class is C:\Program Files (x86)\Python\2_7_11\Lib\xml\etree\cElementTree.pyThanks