def __init__(self, input_file): self.dom = minidom.parse(input_file) self.svg_node = self.dom.documentElement