from bs4 import BeautifulSoup


def extract_body_from_html(html_soup):
	"""Return an XML beautiful soup object with the <body> of the input HTML file"""

	body = html_soup.body.extract()
	xml_soup = BeautifulSoup('', 'xml')
	xml_soup.append(body)

	return xml_soup