wegen/sosci2word/sosci2word.py

41 lines
655 B
Python

#!/usr/bin/python3
#
# sosci2word - Einlesen eines SoSci-Fragebogens und umwandeln in ein Word-Dokument
#
# (c) 2023 Hermann Voßeler
# This code is free software and can be used under the terms of the MIT License.
#
from xml.etree import ElementTree
#-----------------------SETUP
SOSCI_XML='ThesisFragebogen.2023-04-19.xml'
WORD_TEMPLATE='Thesis-Fragebogen.docx'
WORD_OUTPUT='Thesis-Fragebogen-import.docx'
#-----------------------SETUP
def convertSosci2Word():
#
root = ElementTree.parse(SOSCI_XML).getroot()
for child in root:
print(child.tag, child.attrib)
if __name__=='__main__':
convertSosci2Word()