[lxml-dev] Difference between xhtml etrees
Stefan Behnel
stefan_ml at behnel.de
Thu Jun 11 07:38:07 CEST 2009
D wrote:
> I have two xhtml documents which I would like to compare. They are
> available as etrees.
> Ideally I would like to have a resulting tree, where the appropriate
> changes are marked with ins and del tags. I don't need anything fancy
> like a detection of moves.
>
> I had a look at lxml.html.diff
> http://codespeak.net/lxml/lxmlhtml.html#html-diff
> but it operates on html strings only, and not on my parsed tree.
Did you try passing the root elements of the trees?
Stefan
More information about the lxml-dev
mailing list