How do I get content from xml tags when the same tag is used multiple times using lxml in python?
<p>Let's say I have the following content -</p>

<pre><code>&lt;test&gt; This is some text &lt;/test&gt;
&lt;test&gt; This is other text &lt;/test&gt;
</code></pre>

<p>Now I want to extract the content from both tags, but be able to refer to them as tag-1 and tag-2 so that I can work with them separately. How do I do that?</p>