def generate_points(self):
    doc = minidom.parse(self.file_path)
    self.ref_to_element = {}
    for svg in doc.getElementsByTagName('svg'):
        mobjects = self.get_mobjects_from(svg)
        if self.unpack_groups:
            self.add(*mobjects)
        else:
            self.add(*mobjects[0].submobjects)
    doc.unlink()
def generate_points(self):
    doc = minidom.parse(self.file_path)
    self.ref_to_element = {}
    for svg in doc.getElementsByTagName('svg'):
        mobjects = self.get_mobjects_from(svg)
        if self.unpack_groups:
            self.add(*mobjects)
        else:
            self.add(*mobjects[0].submobjects)
    doc.unlink()