diff --git a/sosci2word/sosci2word.py b/sosci2word/sosci2word.py new file mode 100644 index 0000000..6c9cb13 --- /dev/null +++ b/sosci2word/sosci2word.py @@ -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()