lxml, comparing nodes

Sebastian "lunar" Wiesner basti.wiesner at gmx.net
Wed Jul 23 18:00:26 CEST 2008


code_berzerker <emen999 at gmail.com>:

> I'd like to know if there is any built in mechanism in lxml that lets
> you check equality of two nodes from separate documents. I'd like it
> to ignore attribute order and so on. It would be even better if there
> was built in method for checking equality of whole documents (ignoring
> document order). Please let me know if you know of such method or
> existing scipt. I dont like reinventing the wheel :)

Did you try the equality operator?

-- 
Freedom is always the freedom of dissenters.
                                      (Rosa Luxemburg)



More information about the Python-list mailing list