Innovative XML solutions since 2003

ExamXML  mdcxml  JExamXML  xml2csv  csv2xml 
Order one, get two
ExamXML includes MDCXML, so you do not need to buy MDCXML.
Since MDCXML uses the ExamXML comparison engine, please install ExamXML before using MDCXML.
 
Fast comparison, merging XML files
MDCXML is fastest XML differencing utility on the market. It compares two huge XML files and creates a diff delta file just in seconds.
 
Supports extra-large XML documents
Using short command arguments like
mdcxml <first-XML-file> <second-XML-file> without printing differences, you can compare XML files up to 100 MB.
This is especially useful when you just want to find out whether two XML documents are identical or not.
(Click on image to enlarge)
Options file example
Works in a batch mode
MDCXML returns resulting variable named errorlevel which can be used in a batch file.
0 - Two XML documents are identical (OK)
1 - There are changed elements
2 - There are changed and deleted elements
3 - Run-time error
 
Close integration with ExamXML
You can use the same option file with both ExamXML and MDCXML.
Comparing two folders by MDCXML
SET mdcxml="C:\Program Files\ExamXML\mdcxml.exe"
SET examxml="C:\Program Files\ExamXML\examxml.exe"
SET dir1=g:\tmp\src
SET dir2=g:\tmp\dst
SET dir3=g:\tmp\diff
SET pattern=*.xml

for /F %%g in ('dir /b %dir1%\%pattern%') do (
  if exist %dir2%\%%g (
    echo Comparing %dir1%\%%g and %dir2%\%%g
    %mdcxml% %dir1%\%%g %dir2%\%%g %dir3%\%%g /D options
    echo %errorlevel%
    if %errorlevel% neq 0 %examxml% %dir1%\%%g %dir2%\%%g /O:options
  ) else (
    echo %dir2%\%%g does not exist
  )
)