3
我有两个xml配置文件,我只需要比较两个文件的结构并显示其差异。 请注意:比较时,应该忽略xml节点中的值。比较xml结构使用Powershell
例如:
XML 1
----
<recipe>
<ingredients>
<ingredient1></ingredient1><ingredient2></ingredient2>
</ingredients>
<description></description>
</recipe>
XML 2
-----
<recipe>
<ingredients>
<ingredient1></ingredient1>
</ingredients>
<description></description>
<images></images>
</recipe>
结果应该是两个XML文件的差异。
xml1 <ingredient2>
xml2 <images>
非常感谢。
工程太棒了!谢谢。 – jack
很高兴它可以帮助你 –