[lxml-dev] c14n, pretty printing and diffing

Ian Bicking ianb at colorstudy.com
Wed Feb 13 06:53:13 CET 2008


Stefan Behnel wrote:
> Olivier Collioud wrote:
>> I would like to use my favourite text diffing tool to compare XML
>> files.
> 
> Which is not lxml.html.diff, I assume? (I'm not sure how HTML specific that
> is, BTW).

lxml.html.diff is intended for presenting to readers, like a history 
diff of a page; it's content-focused, and ignores changes to markup 
(though it attempts to show the content inside the newest version of the 
markup).

It's not all that HTML specific exactly; it would probably work okay 
with Docbook too.  But it's very specific to presentational markup.

   Ian


More information about the lxml-dev mailing list