Is there any library for this, or does anyone have anything done in Xerces, or any link on how to do this, or any API or any way to do this in Xerces?
I don't think Xerces includes an XML diff algorithm. If you want to implement it yourself, check out this thesis and the accompanying Java code.