• Login or register

discuss.effbot.org

  • Popular
  • Recent
  • 1 point by effbot 2 months ago on XPath Support in ElementTree 0 children

    If you're using the "prefix:tag" form in XPath expressions in ET 1.3, you need to pass in a dictionary that tells the XPath engine what the prefix means, e.g.

    myElt.findall('.//v:shape', {'v': 'http://somethingsomething'})

    What prefix the file actually uses is irrelevant.

    • parent
    • reply
  • Widget
  • Recent Comments
  • Leaders
Powered by slinkset.com