Hi LarsA Not sure if Xerces has that but check here : https://stackoverflow.com/questions/5169313/need-to-find-the-difference-between-two-xml-files-in-c (or check Xerces c++ samples which ship in the API zip - maybe one of them does this or similar?)
Or if you just want your unit test to inform whether 2 files are identical then i would just use memcmp( ): http://en.cppreference.com/w/cpp/string/byte/memcmp (Check file sizes, if different then end-of-test, if not different sizes, then read them in separate memory buffers and compare using std::memcmp( ), if it returns 0, they're identical, if not 0 then they're different) All the best, BN On 7 July 2017 at 13:04, Lars <laasu...@hotmail.com> wrote: > Hello, > > > Does Xerces-C++ 3.1.4 contain a method to compare two xml files? Reviewing > the API references I could not find any such functionality. > > > This is needed during unit testing. > > > kind regards, LarsA > >