Elementree and insert new element if it is not present - FIXED
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
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