I want to output a list of the main elements of a page. The summary is printed below. I need a way to only grab the text between the text tags using python. If successful I want the output of the content below to be:
Mathematics, Differential equation, Geometry
<language>english</language>
<concepts>
<concept>
<text>Mathematics</text>
<relevance>0.988094</relevance>
<dbpedia>http://dbpedia.org/resource/Mathematics</dbpedia>
<freebase>http://rdf.freebase.com/ns/m.04rjg</freebase>
<opencyc>http://sw.opencyc.org/concept/Mx4rvVjHd5wpEbGdrcN5Y29ycA</opencyc>
</concept>
<concept>
<text>Differential equation</text>
<relevance>0.729187</relevance>
<dbpedia>http://dbpedia.org/resource/Differential_equation</dbpedia>
<freebase>http://rdf.freebase.com/ns/m.050fdl</freebase>
<opencyc>http://sw.opencyc.org/concept/Mx4rvXXRFJwpEbGdrcN5Y29ycA</opencyc>
</concept>
<concept>
<text>Geometry</text>
<relevance>0.677052</relevance>
<dbpedia>http://dbpedia.org/resource/Geometry</dbpedia>
<freebase>http://rdf.freebase.com/ns/m.025x7g_</freebase>
<opencyc>http://sw.opencyc.org/concept/Mx4rvgcAf5wpEbGdrcN5Y29ycA</opencyc>
</concept>
<concept>