cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Comparison of Two XML Files
Comparison of Two XML Files
Feb 2, 2015 at 12:29pm UTC
HabibAurangabad
(15)
Hi guys. I need a program that can compare two xml files for
equivalency
using any
XML Parser
.Any kind of guidance will be helpful.
Last edited on
Feb 2, 2015 at 12:30pm UTC
Feb 2, 2015 at 1:53pm UTC
ajh32
(659)
You don't need an xml library to do that, just load each file into memory and create a hash of each. If the hash generated from both file is the same then they are equivalent.
Feb 2, 2015 at 2:02pm UTC
keskiverto
(10402)
@ajh32: Do "abc" and "bac" have the same hash? XML is tricky, because it does not enforce order of elements.
First hit from my "diff xml" websearch:
http://diffxml.sourceforge.net/
Topic archived. No new replies allowed.