sosci2word: Rahmen angelegt

This commit is contained in:
Fischlurch 2023-05-19 20:41:19 +02:00
parent 249c2c8a7b
commit cc6a42970e

41
sosci2word/sosci2word.py Normal file
View file

@ -0,0 +1,41 @@
#!/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()