[lxml-dev] Patch for xpathgrep.py

Stefan Behnel stefan_ml at behnel.de
Mon Jun 9 14:58:00 CEST 2008


Thomas Schraitle wrote:
> like
> lxml very much! Thanks for all the hard work that went into this library!

:)


> To improve it a bit, I've created a humble patch against xpathgrep.py.
> I've
> looked at it and I missed a namespace option. Well, here it is. See the
> attached patch. Hope it's ok, feel free to adapt it to your needs.

I considered using ETXPath() instead of plain XPath() for that script, so
that you can say "//{ns}stuff". But I think your patch makes sense as well
and may mean less typing/c&p on the cmd line. I'll enable both then.

Thanks,
Stefan



More information about the lxml-dev mailing list