From cc6a42970ec4e3eb4cbbf99b48e1c43c8bcd609e Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Fri, 19 May 2023 20:41:19 +0200 Subject: [PATCH] sosci2word: Rahmen angelegt --- sosci2word/sosci2word.py | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 sosci2word/sosci2word.py 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()