Python libxml2

Kimbro Staken gives an example of XPath code with Python’s libxml2 bindings. I didn’t even know about this; I always end up poncing around with from xml.xpath import Evaluate or whatever. How are people to find out which XML libraries to use? I do normally try and stick with what you get in stock Python when I write code, to minimise dependencies, but maybe I should rethink that policy.

Oh, and, since “pytohn” isn’t a word, I wish all operating systems would autocorrect it whenever I type it.


More in the discussion (powered by webmentions)

  • (no mentions, yet.)