Convert TXT to XML in Python

We can store textual data quickly and easily in TXT files. However, we may need to convert data from a TXT file into XML programmatically. In this article, you will learn how to convert a TXT file to XML in Python.
<span title='2022-06-23 01:00:00 +0000 UTC'>June 23, 2022</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;Muzammil Khan