Select texts between tags in Xpath in Python <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;td width="250"&gt; 10.03.1984 16:30 &lt;br/&gt; Lütfi Kırdar, İstanbul &lt;br/&gt; &lt;br/&gt; 47-38, 49-58, 8-10 &lt;/td&gt;</code></pre> </div> </div> </p> <p>I want to get all text between "td" tags. My code is mactarih=tree.xpath("//tr//td[@width='250']//text()") . But it is wrong. </p> <p>The expected result is: text=['10.03.1984 16:30','Lütfi Kırdar, İstanbul','47-38, 49-58, 8-10']</p>