I have a xml like this:
hello world
bs4 is very useful for this
from bs4 import BeautifulSoup raw_xml = open(source_file, 'r') soup = BeautifulSoup(raw_xml) soup.find_all('tags')