[lxml-dev] DOM tree intersection/comparison?

Stefan Behnel stefan_ml at behnel.de
Fri May 23 12:24:13 CEST 2008


Hi,

Viksit Gaur wrote:
> I was wondering if there's a currently implemented way to find out the 
> common elements between 2 DOM trees?
[...]
> <html>
> <div>
> <a>
> </div>
> </html>

Have a look at lxml.html.diff, might come close to what you want.

Stefan



More information about the lxml-dev mailing list