I followed the guide at https://stackabuse.com/parsing-xml-with-...in-python/ , some test code
<PAYEE matchingenabled="0" email="" name="Transfers - inter account" reference="" id="P000001">
<ADDRESS street="" telephone="" state="" city="" postcode=""/>
</PAYEE>
from bs4 import BeautifulSoup with open('xmlfile', 'r') as f: file = f.read() # 'xml' is the parser used. For html files, which BeautifulSoup is typically used for, it would be 'html.parser'. soup = BeautifulSoup(file, 'xml') payees = soup.find_all('PAYEE') for payee in payees: print(payee.text)but no output. It seems to be out putting a lot of blank lines though ? Sample data is of the format:
<PAYEE matchingenabled="0" email="" name="Transfers - inter account" reference="" id="P000001">
<ADDRESS street="" telephone="" state="" city="" postcode=""/>
</PAYEE>