I’m working on a Linux project that includes identifying changes between XML files and I need a source code on C++ to compare XML fragments.   
I’m using differencing tool ExamXML from http://www.a7soft.com to compare and merge XML files but this is Windows application.