This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xml.etree.ElementTree as etree | |
import sys | |
import os.path | |
def visualize_xml(element, padding=' '): | |
""" Visualize all ElementTree nodes by printing them to screen """ | |
if type(element.tag) != str: | |
return |