sosci2word: Rahmen angelegt
This commit is contained in:
parent
249c2c8a7b
commit
cc6a42970e
1 changed files with 41 additions and 0 deletions
41
sosci2word/sosci2word.py
Normal file
41
sosci2word/sosci2word.py
Normal 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()
|
||||
Loading…
Reference in a new issue