hello all i want ask something about xml and python
example i have 1 file with extention .txt and in that file i have 4 statement
ndoe
bali
swimming
male
and i want convert that file to xml like this
<name> ndoe </name>
<home> bali </home>
<hoby> swimming </hoby>
<gender> male </male>
how to convert like that?
any library can i use? or i must to convert 1 by 1 every statement in 1 file
thanks for your answer