XML Python

from xml.dom import minidom 
xmldoc = minidom.parse('sample.xml') 
title = xmldoc.getElementsByTagName('title')[0].firstChild.data