XML 1 - Find the Score

  • + 0 comments
    def get_attr_number(node):
        total = 0
        for child in node.iter():
            total += int(len(child.attrib))
        return total