title: Python lxml getpath error
body: <p>I'm trying to get a full list of xpaths from a device config in xml. </p>
  
  <p>When I run it though I get:</p>
  
  <pre><code> AttributeError: 'Element' object has no attribute 'getpath'
  </code></pre>
  
  <p>Code is just a few lines </p>
  
  <pre><code>import xml.etree.ElementTree
  import os
  from lxml import etree
  
  file1 = 'C:\Users\test1\Desktop\test.xml'
  file1_path = file1.replace('\\','/')
  
  
  e = xml.etree.ElementTree.parse(file1_path).getroot()
  
  for entry in e.iter():
      print e.getpath(entry)
  </code></pre>
  
  <p>anyone come across this before ?</p>
  
  <p>Thanks </p>
  
  <p>Richie</p>