Stefan Behnel <stefan.behnel-n05pAM at web.de> writes: [...] > I'm not quite sure how this is supposed to be related to Python, but if you're > trying to find a sibling, what about using the "sibling" axis in XPath? <nit> There's no "sibling" axis in XPath. I'm sure you meant "following-sibling" and/or "preceding-sibling". </nit> John