top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to write a c++ code for comparing 2 XML files and printing the difference in another file ?

+2 votes
219 views
How to write a c++ code for comparing 2 XML files and printing the difference in another file ?
posted Dec 30, 2015 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

The simplest way is to take the diff (linux diff) but it would not give you desired result.

So you need something like expat which is nothing but a xml parser, and we have c++ wrapper for it. Check the following links would be helpful -

http://expat.sourceforge.net/
http://www.codeproject.com/Articles/1847/C-Wrappers-for-the-Expat-XML-Parser/

answer Dec 30, 2015 by Salil Agrawal
...