title: lxml get the all the html of an xpath selected element
body: <p>So I have a given piece of HTML and I want to select a part of it using <code>xpath</code> and <code>lxml</code></p>
  <pre><code>from lxml import etree  
  
  example_html = '''
      &lt;div&gt;
       &lt;span&gt;
         &lt;p&gt;abc&lt;/p&gt;
         &lt;p&gt;def&lt;/p&gt;
       &lt;/span&gt;
      &lt;/div&gt;
  '''
  
  htmlparser = etree.HTMLParser()
  tree = etree.fromstring(example_html, htmlparser)
  
  el = tree.xpath('//div')
  </code></pre>
  <p><code>el</code> now is obviously this <code>[&lt;Element div at 0x7f61154c3f88&gt;]</code> what I want to do is a <code>el[0].get_html()</code> to get:</p>
  <pre><code> &lt;span&gt;
     &lt;p&gt;abc&lt;/p&gt;
     &lt;p&gt;def&lt;/p&gt;
   &lt;/span&gt;
  </code></pre>
  <p>Is this possible? And if not with lxml is there another library?</p>