[lxml-dev] DOM tree intersection/comparison?
Stefan Behnel
stefan_ml at behnel.de
Sat May 24 13:42:32 CEST 2008
Hi,
Viksit Gaur wrote:
> I see there's a DFS
> iterator for elements, but is there a way to do a breadth first
> iteration through the tree?
there's no API for it, but BFS shouldn't be that hard to do in Python.
Actually, if deque() supported appending during iteration, it would be totally
trivial. But there should be recipes on the web.
Stefan
More information about the lxml-dev
mailing list