You are viewing a single comment's thread. Return to all comments →
if (level + 1) > maxdepth: maxdepth = level + 1 for child in elem: depth(child, level + 1)
Seems like cookies are disabled on this browser, please enable them to open this website
XML2 - Find the Maximum Depth
You are viewing a single comment's thread. Return to all comments →