I am trying to visit every element on an xml through recursion
- Code: Select all
t=recur(root) #Passing the xml root elemnet
for ch in e.iter():
I am getting an runtime error: max recursion depth. I am not sure what's going wrong. If I am print the vale of ch is working fine.