title: rewrite ElementTree code in lxml
body: <p>I am writing a code to extract text from a xml file using ElementTree but I found out that    lxml is giving xpath features which is more convenient. So i want to know how this line could be rewritten in lxml  </p>
  
  <pre><code>if x.nodeName == 'a:pPr' and x.getAttribute('lvl') == '2' and x.hasAttribute('marL') == False:
  </code></pre>
  
  <p>currently I am suggested to  use this..</p>
  
  <pre><code>'/p:sld/p:cSld/p:spTree/p:sp/p:nvSpPr/p:nvPr/x[@type="body" and  @sz="quarter"  and  @marL]'
  </code></pre>
  
  <p>Hope my question is clear!</p>