title: How to get xpath from root to particular element in python while parsing xml
body: <p>I want to list all the elements path in xml with respect to their root. for example</p>
  
  <pre><code>&lt;A&gt;
     &lt;B&gt;
       &lt;C&gt;Name&lt;/C&gt;
       &lt;D&gt;Name&lt;/D&gt;
     &lt;/B&gt;
  &lt;/A&gt;
  </code></pre>
  
  <p>So i want to list them as :-</p>
  
  <pre><code>A/B/C
  A/B/D
  </code></pre>
  
  <p>I am able to parse xml using "Element" Object of python but not able to extract xpath from it. Any help?</p>