Exemplo n.º 1
0
def print_element(file, element: Element, depth=0):
    file.write(element.to_gedcom_string())
    for child in element.get_child_elements():
        print_element(file, child, depth=depth+1)
Exemplo n.º 2
0
 def print_element(self, file, element: Element, depth=0):
     gedcom_string = element.to_gedcom_string()
     file.write(gedcom_string)
     for child in element.get_child_elements():
         self.print_element(file, child, depth=depth + 1)