salve a tutti!!!
ho un problema con child.text. ho scritto un file xml di questo tipo:
<par>
ciao!!!!!!
ole!!
<formulae>\sum_{i=0}^3</formulae>
buona sera
</par>
ho aperto il terminale e digitato python3:
>>> import xml.etree.ElementTree as et
>>> file = et.parse("NewFile.xml")
>>> root = file.getroot()
>>> root
<Element par at b7b2f44c>
>>> root.text
'\nciao!!!!!!\nole!!\n'
come mai non legge anche l'ultima riga "buona sera\n"??
non c'è un modo per fargli leggere tutto quello che c'è nel testo??