How to compare XML files

后端 未结 5 1773
遇见更好的自我
遇见更好的自我 2021-02-19 11:44

I have two XML files (XSD) which are generated by some tool.
The tool doesn\'t preserve the order of elements so although the content is equal comparing it as text will resu

5条回答
  •  自闭症患者
    2021-02-19 12:38

    You can use the perl module DifferenceMarkup http://metacpan.org/pod/XML::DifferenceMarkup or the xmldiff pecl.php.net/xmldiff extension in PHP. Both will produce a human readable XML diff document.

提交回复
热议问题