lxml and xpath(?)

dieter dieter at handshake.de
Wed Nov 2 04:27:08 EDT 2016


Doug OLeary <dkoleary at olearycomputers.com> writes:
> ...
> Any hints/tips/suggestions greatly appreciated especially with complete noob tutorials for xpath.

You can certainly do it with "XPath" (look for the "following-sibling" axis).

You can also use Python (with "lxml"). If you have an element "e", then
"e.getnext()" gives you the sibling following "e" (or `None`).




More information about the Python-list mailing list