Elementree and insert new element if it is not present - FIXED

2014-01-23 Thread Tharanga Abeyseela
manged to fix it. need to add the namespace when checking the condition. Thanks -- https://mail.python.org/mailman/listinfo/python-list

Elementree and insert new element if it is not present

2014-01-23 Thread Tharanga Abeyseela
Hi, I have the following xml,a nd i need to add Description element if it is not present. xxxXWorld's Fastest Indian, The xxxThe World's Fastest Indian The World's Fastest Indian World's Fastest Indian, The here is my function. def insert_description(root,type): for child in root.finda